Get rid of some unused warnings.

This commit is contained in:
Rasmus Kaj 2016-05-03 07:26:55 +02:00
parent a21d60a7be
commit 1a421537fb
3 changed files with 3 additions and 0 deletions

View File

@ -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")
}

View File

@ -18,6 +18,7 @@ impl PhotosDir {
}
}
#[allow(dead_code)]
pub fn get_scaled_image(&self, photo: Photo, width: u32, height: u32)
-> Vec<u8> {
let path = self.basedir.join(photo.path);

View File

@ -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) {