We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da1517b commit 70b653aCopy full SHA for 70b653a
src/hostfxr/library.rs
@@ -64,12 +64,12 @@ impl Hostfxr {
64
}
65
66
/// Returns the path to the dotnet root.
67
- pub fn get_dotnet_root(&self) -> PathBuf {
+ #[must_use] pub fn get_dotnet_root(&self) -> PathBuf {
68
self.get_dotnet_exe().parent().unwrap().to_owned()
69
70
71
/// Returns the path to the dotnet executable of the same installation as hostfxr.
72
- pub fn get_dotnet_exe(&self) -> PathBuf {
+ #[must_use] pub fn get_dotnet_exe(&self) -> PathBuf {
73
self.dotnet_exe.to_os_string().into()
74
75
0 commit comments