Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Braunsperger committed Feb 2, 2024
1 parent e138854 commit 431e551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hostfxr/library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ impl Hostfxr {
}

/// Returns the path to the dotnet root.
pub fn get_dotnet_root(&self) -> PathBuf {
#[must_use] pub fn get_dotnet_root(&self) -> PathBuf {
self.get_dotnet_exe().parent().unwrap().to_owned()
}

/// Returns the path to the dotnet executable of the same installation as hostfxr.
pub fn get_dotnet_exe(&self) -> PathBuf {
#[must_use] pub fn get_dotnet_exe(&self) -> PathBuf {
self.dotnet_exe.to_os_string().into()
}
}
Expand Down

0 comments on commit 431e551

Please sign in to comment.