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 ed53892
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions cmd/crates/soroban-test/tests/it/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,18 @@ 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")
.map(|x| {
format!(
"CARGO_BUILD_RUSTFLAGS=--remap-path-prefix={}= {}",
registry_prefix, x
)
})
.split('\n')
.map(|x| format!("CARGO_BUILD_RUSTFLAGS=--remap-path-prefix={registry_prefix}= {x}",))
.collect()
};

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

0 comments on commit ed53892

Please sign in to comment.