index : paprika

A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes

diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-04-18 16:49:32 +0800
committerPeter Cai <[email protected]>2020-04-18 16:49:32 +0800
commitffb4c24292a77e9dc51654c14a7c68b2b7600b2a (patch)
treef7f3560a3dc31c75e6d8a55f2936ef1ca44d22af
parent5c2615a6cbea62d69717dde2deb7bed3e494a06f (diff)
downloadpaprika-ffb4c24292a77e9dc51654c14a7c68b2b7600b2a.tar.gz
get rid of dead code warnings
-rw-r--r--src/lib.rs4
-rw-r--r--src/sn.rs2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index a901f5c..900004e 100644
--- a/src/lib.rs
+++ b/src/lib.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;
diff --git a/src/sn.rs b/src/sn.rs
index 8670ad0..a40188c 100644
--- a/src/sn.rs
+++ b/src/sn.rs
@@ -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