get rid of dead code warnings

This commit is contained in:
Peter Cai 2020-04-18 16:49:32 +08:00
parent 5c2615a6cb
commit ffb4c24292
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
2 changed files with 2 additions and 4 deletions

View File

@ -3,11 +3,7 @@
#[macro_use] #[macro_use]
extern crate handlebars; extern crate handlebars;
#[macro_use] #[macro_use]
extern crate include_dir;
#[macro_use]
extern crate lazy_static; extern crate lazy_static;
#[macro_use]
extern crate serde_json;
#[macro_use] #[macro_use]
mod utils; mod utils;

View File

@ -295,6 +295,7 @@ async fn delete_post(req: Request, url: Url) -> MyResult<Response> {
).internal_err() ).internal_err()
} }
#[allow(dead_code)]
pub enum Verb { pub enum Verb {
Show, Show,
Post, Post,
@ -343,6 +344,7 @@ impl Serialize for ContentType {
} }
} }
#[allow(dead_code)]
pub enum AccessType { pub enum AccessType {
Decrypted, Decrypted,
Encrypted Encrypted