Skip to content

Commit 70b653a

Browse files
committed
Fix clippy warnings
1 parent da1517b commit 70b653a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hostfxr/library.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ impl Hostfxr {
6464
}
6565

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

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

0 commit comments

Comments
 (0)