From: Ian Jackson Date: Wed, 12 May 2021 23:50:29 +0000 (+0100) Subject: bundles: Pieces: fix order of return values from rsplit X-Git-Tag: otter-0.6.0~314 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f4bdc9aaf73c9e57659d3a87ef04a396e9d448f0;p=otter.git bundles: Pieces: fix order of return values from rsplit Signed-off-by: Ian Jackson --- diff --git a/src/bundles.rs b/src/bundles.rs index 36c9d509..b22099a7 100644 --- a/src/bundles.rs +++ b/src/bundles.rs @@ -506,7 +506,7 @@ fn parse_bundle(id: Id, instance: &InstanceName, file: File, eh: EH, .collect::>() .into_inner(); if unicase::eq(dir, "library"); - if let Some((ext, base)) = file.rsplit_once('.'); + if let Some((base, ext)) = file.rsplit_once('.'); if unicase::eq(ext, "toml"); then { libs.push(LibScanned {