Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ifropc committed Dec 20, 2024
1 parent 5e4f34d commit d26395b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/crates/soroban-test/tests/it/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,22 @@ fn with_flags(expected: &str) -> String {
let registry_prefix = format!("{cargo_home}/registry/src/");

let vec: Vec<_> = if env::var("RUSTFLAGS").is_ok() {
expected.split("\n").map(|x| x.to_string()).collect()
expected.split('\n').map(ToString::to_string).collect()
} else {
expected
.split("\n")
.split('\n')
.map(|x| {
format!(
"CARGO_BUILD_RUSTFLAGS=--remap-path-prefix={}= {}",
registry_prefix, x
"CARGO_BUILD_RUSTFLAGS=--remap-path-prefix={registry_prefix}= {x}",
)
})
.collect()
};

return format!(
format!(
"\
{}
",
vec.join("\n")
);
)
}

0 comments on commit d26395b

Please sign in to comment.