Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Jul 26, 2024
1 parent 8c43819 commit 4048c7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/artifacts/solc/src/remappings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ impl Remapping {
/// prioritize
/// - ("a", "1/2") over ("a", "1/2/3")
/// - if a path ends with `src`
fn insert_prioritized(mappings: &mut BTreeMap<String, PathBuf>, key: String, path: PathBuf) {
fn insert_prioritized(
mappings: &mut BTreeMap<String, PathBuf>,
key: String,
path: PathBuf,
) {
match mappings.entry(key) {
Entry::Occupied(mut e) => {
if e.get().components().count() > path.components().count()
Expand Down

0 comments on commit 4048c7b

Please sign in to comment.