From: Ian Jackson Date: Sat, 22 May 2021 17:06:41 +0000 (+0100) Subject: bundles: When we didn't find the file, lowercase the extensions X-Git-Tag: otter-0.6.0~79 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e692adabe1f6ccc7f79ad19da61be23bb3892844;p=otter.git bundles: When we didn't find the file, lowercase the extensions Signed-off-by: Ian Jackson --- diff --git a/src/bundles.rs b/src/bundles.rs index 33c404d6..61fb7a96 100644 --- a/src/bundles.rs +++ b/src/bundles.rs @@ -752,7 +752,7 @@ fn make_usvg(za: &mut IndexedZip, progress_count: &mut usize, } throw!(LE::BadBundle(format!( "missing image file, looked for one of {}/{}.{}", dir_inzip, item, - PictureFormat::iter().join(" ."), + PictureFormat::iter().map(|s| s.to_string().to_lowercase()).join(" ."), ))); };