Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Feb 23, 2025
1 parent dfc87a0 commit 9bcc1e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/espidf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,9 @@ impl std::fmt::Display for EspIdfVersion {
///
/// Two variations exist:
/// - Managed
/// The esp-idf source is installed automatically.
/// The esp-idf source is installed automatically.
/// - Custom
/// A user-provided local clone the esp-idf repository.
/// A user-provided local clone the esp-idf repository.
///
/// In both cases the [`Installer`] will install all required tools.
///
Expand Down Expand Up @@ -783,7 +783,6 @@ impl Installer {
let paths = env::join_paths(
tools_path
.into_iter()
.map(PathBuf::from)
.chain(env::split_paths(&env::var_os("PATH").unwrap_or_default())),
)?;

Expand Down Expand Up @@ -818,7 +817,7 @@ impl Installer {
///
/// The version string can have the following format:
/// - `commit:<hash>`: Uses the commit `<hash>` of the `esp-idf` repository. Note that
/// this will clone the whole `esp-idf` not just one commit.
/// this will clone the whole `esp-idf` not just one commit.
/// - `tag:<tag>`: Uses the tag `<tag>` of the `esp-idf` repository.
/// - `branch:<branch>`: Uses the branch `<branch>` of the `esp-idf` repository.
/// - `v<major>.<minor>` or `<major>.<minor>`: Uses the tag `v<major>.<minor>` of the `esp-idf` repository.
Expand Down
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl Ref {
///
/// The ref string can have the following format:
/// - `commit:<hash>`: Uses the commit `<hash>` of the repository. Note that
/// this will clone the whole repository not just one commit.
/// this will clone the whole repository not just one commit.
/// - `tag:<tag>`: Uses the tag `<tag>` of the repository.
/// - `branch:<branch>`: Uses the branch `<branch>` of the repository.
/// - `v<major>.<minor>` or `<major>.<minor>`: Uses the tag `v<major>.<minor>` of the repository.
Expand Down
2 changes: 1 addition & 1 deletion src/pio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Pio {
pio_installer.pio(pio_dir);
}

pio_installer.update().map(Into::into)
pio_installer.update()
}

pub fn install_default() -> Result<Self> {
Expand Down

0 comments on commit 9bcc1e0

Please sign in to comment.