get rid of dead code warnings

master
Peter Cai 3 years ago
parent 5c2615a6cb
commit ffb4c24292
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
  1. 4
      src/lib.rs
  2. 2
      src/sn.rs

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

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

Loading…
Cancel
Save