Skip to content

Commit e121545

Browse files
fix clippy::doc_overindented_list_items
1 parent 6b3ba96 commit e121545

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

crates/project-model/src/project_json.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ impl ProjectJson {
8585
///
8686
/// * `manifest` - The path to the `rust-project.json`.
8787
/// * `base` - The path to the workspace root (i.e. the folder containing `rust-project.json`)
88-
/// * `data` - The parsed contents of `rust-project.json`, or project json that's passed via
89-
/// configuration.
88+
/// * `data` - The parsed contents of `rust-project.json`, or project json that's passed via configuration.
9089
pub fn new(
9190
manifest: Option<ManifestPath>,
9291
base: &AbsPath,

crates/toolchain/src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ impl Tool {
2727
///
2828
/// The current implementation checks three places for an executable to use:
2929
/// 1) `$CARGO_HOME/bin/<executable_name>`
30-
/// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
31-
/// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
32-
/// It seems that this is a reasonable place to try for cargo, rustc, and rustup
30+
/// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
31+
/// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
32+
/// It seems that this is a reasonable place to try for cargo, rustc, and rustup
3333
/// 2) Appropriate environment variable (erroring if this is set but not a usable executable)
34-
/// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
34+
/// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
3535
/// 3) $PATH/`<executable_name>`
36-
/// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
37-
/// first that exists
36+
/// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
37+
/// first that exists
3838
/// 4) If all else fails, we just try to use the executable name directly
3939
pub fn prefer_proxy(self) -> Utf8PathBuf {
4040
invoke(&[cargo_proxy, lookup_as_env_var, lookup_in_path], self.name())
@@ -44,14 +44,14 @@ impl Tool {
4444
///
4545
/// The current implementation checks three places for an executable to use:
4646
/// 1) Appropriate environment variable (erroring if this is set but not a usable executable)
47-
/// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
47+
/// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
4848
/// 2) $PATH/`<executable_name>`
49-
/// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
50-
/// first that exists
49+
/// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
50+
/// first that exists
5151
/// 3) `$CARGO_HOME/bin/<executable_name>`
52-
/// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
53-
/// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
54-
/// It seems that this is a reasonable place to try for cargo, rustc, and rustup
52+
/// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
53+
/// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
54+
/// It seems that this is a reasonable place to try for cargo, rustc, and rustup
5555
/// 4) If all else fails, we just try to use the executable name directly
5656
pub fn path(self) -> Utf8PathBuf {
5757
invoke(&[lookup_as_env_var, lookup_in_path, cargo_proxy], self.name())

0 commit comments

Comments
 (0)