summaryrefslogtreecommitdiff
path: root/cli/tools/vendor/mappings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools/vendor/mappings.rs')
-rw-r--r--cli/tools/vendor/mappings.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/tools/vendor/mappings.rs b/cli/tools/vendor/mappings.rs
index 14705e51e..8cf6388d2 100644
--- a/cli/tools/vendor/mappings.rs
+++ b/cli/tools/vendor/mappings.rs
@@ -133,9 +133,7 @@ impl Mappings {
self
.mappings
.get(specifier)
- .unwrap_or_else(|| {
- panic!("Could not find local path for {}", specifier)
- })
+ .unwrap_or_else(|| panic!("Could not find local path for {specifier}"))
.to_path_buf()
}
}
@@ -163,7 +161,7 @@ impl Mappings {
.iter()
.find(|s| child_specifier.as_str().starts_with(s.as_str()))
.unwrap_or_else(|| {
- panic!("Could not find base specifier for {}", child_specifier)
+ panic!("Could not find base specifier for {child_specifier}")
})
}