Skip to content

Commit

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

/// Returns the path to the dotnet root.
#[must_use] 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.
#[must_use] 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 2eb2998

Please sign in to comment.