diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
| commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
| tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /cli/tools/vendor/mappings.rs | |
| parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) | |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tools/vendor/mappings.rs')
| -rw-r--r-- | cli/tools/vendor/mappings.rs | 6 |
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}") }) } |
