Get rid of some unused warnings.
This commit is contained in:
parent
a21d60a7be
commit
1a421537fb
@ -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")
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user