diff --git a/src/env.rs b/src/env.rs index 5014935..f5aa27a 100644 --- a/src/env.rs +++ b/src/env.rs @@ -6,6 +6,7 @@ pub fn dburl() -> String { require_var("RPHOTOS_DB", "Database url") } +#[allow(dead_code)] pub fn jwt_key() -> String { require_var("JWT_KEY", "Signing key for jwt") } diff --git a/src/photosdir.rs b/src/photosdir.rs index 9d80966..bd128bd 100644 --- a/src/photosdir.rs +++ b/src/photosdir.rs @@ -18,6 +18,7 @@ impl PhotosDir { } } + #[allow(dead_code)] pub fn get_scaled_image(&self, photo: Photo, width: u32, height: u32) -> Vec { let path = self.basedir.join(photo.path); diff --git a/src/readkpa.rs b/src/readkpa.rs index cf51041..a9eb16b 100644 --- a/src/readkpa.rs +++ b/src/readkpa.rs @@ -143,6 +143,7 @@ fn main() { break; }, XmlEvent::StartElement{ref name, ref attributes, ref namespace} => { + debug!("Found {} {:?} {:?}", name, attributes, namespace); match &*name.local_name { "image" => { if let Some(file) = find_attr("file", attributes) {