From f4bdc9aaf73c9e57659d3a87ef04a396e9d448f0 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 13 May 2021 00:50:29 +0100 Subject: [PATCH] bundles: Pieces: fix order of return values from rsplit Signed-off-by: Ian Jackson --- src/bundles.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2