Skip to content

Commit

Permalink
fix(build): formatting on missing toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
jubnzv committed Mar 14, 2024
1 parent 93acb01 commit 3ba0f8b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions crates/build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,10 @@ fn check_dylint_requirements(_working_dir: Option<&Path>) -> Result<()> {
String::from_utf8_lossy(&output.stdout).contains(linting::TOOLCHAIN_VERSION),
format!(
"Toolchain `{0}` was not found!\n\
This specific version is required to provide additional source code analysis.\n\n
You can install it by executing:\n
rustup install {0}\n
rustup component add rust-src --toolchain {0}\n
This specific version is required to provide additional source code analysis.\n\n\
You can install it by executing:\n\
rustup install {0}\n\
rustup component add rust-src --toolchain {0}\n\
rustup run {0} cargo install cargo-dylint dylint-link",
linting::TOOLCHAIN_VERSION,
)
Expand All @@ -640,10 +640,10 @@ fn check_dylint_requirements(_working_dir: Option<&Path>) -> Result<()> {
} else {
anyhow::bail!(format!(
"Toolchain `{0}` was not found!\n\
This specific version is required to provide additional source code analysis.\n\n
Install `rustup` according to https://rustup.rs/ and then run:
rustup install {0}\n
rustup component add rust-src --toolchain {0}\n
This specific version is required to provide additional source code analysis.\n\n\
Install `rustup` according to https://rustup.rs/ and then run:\
rustup install {0}\n\
rustup component add rust-src --toolchain {0}\n\
rustup run {0} cargo install cargo-dylint dylint-link",
linting::TOOLCHAIN_VERSION,
)
Expand Down

0 comments on commit 3ba0f8b

Please sign in to comment.