Skip to content

Commit

Permalink
fix some warnings (#4174)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao authored Aug 6, 2024
1 parent 3ba2211 commit 10da414
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions genesis/tests/generated_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ fn assert_that_version_control_has_no_unstaged_changes() {
.output()
.unwrap();
let output_string = String::from_utf8(output.stdout).unwrap();
// remove .cargo/config from output
let output_string = output_string.replace("M .cargo/config", "");
// remove .cargo/config.toml from output
let output_string = output_string.replace("M .cargo/config.toml", "");
let output_string = output_string.trim().to_string();
if !output_string.is_empty() {
println!("git status output:\n {}", output_string)
Expand Down
4 changes: 2 additions & 2 deletions rpc/api/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ fn assert_that_version_control_has_no_unstaged_changes() {
.output()
.unwrap();
let output_string = String::from_utf8(output.stdout).unwrap();
// remove .cargo/config from output
let output_string = output_string.replace("M .cargo/config", "");
// remove .cargo/config.toml from output
let output_string = output_string.replace("M .cargo/config.toml", "");
let output_string = output_string.trim().to_string();
if !output_string.is_empty() {
println!("git status output:\n {}", output_string)
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ function install_mold {
cp "${TMPFILE}/mold-1.5.1-x86_64-linux/bin/mold" "$(pwd)/mold"
# rm -rf "$TMPFILE"
chmod +x "$(pwd)/mold"
printf $"[target.x86_64-unknown-linux-gnu]\nlinker = \"/usr/bin/clang\"\nrustflags = [\"-C\", \"link-arg=-fuse-ld=$(pwd)/mold\"]\n" >> ./.cargo/config
printf $"[target.x86_64-unknown-linux-gnu]\nlinker = \"/usr/bin/clang\"\nrustflags = [\"-C\", \"link-arg=-fuse-ld=$(pwd)/mold\"]\n" >> ./.cargo/config.toml
else
echo "Mold is only supported on x86_64"
fi
Expand Down
4 changes: 2 additions & 2 deletions vm/stdlib/tests/generated_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ fn assert_that_version_control_has_no_unstaged_changes() {
.output()
.unwrap();
let output_string = String::from_utf8(output.stdout).unwrap();
// remove .cargo/config from output
let output_string = output_string.replace("M .cargo/config", "");
// remove .cargo/config.toml from output
let output_string = output_string.replace("M .cargo/config.toml", "");
let output_string = output_string.trim().to_string();
if !output_string.is_empty() {
println!("git status output:\n {}", output_string)
Expand Down

0 comments on commit 10da414

Please sign in to comment.