diff --git a/src/transport/fusedev/linux_session.rs b/src/transport/fusedev/linux_session.rs index e9d34fcc8..c2233fd71 100644 --- a/src/transport/fusedev/linux_session.rs +++ b/src/transport/fusedev/linux_session.rs @@ -89,7 +89,7 @@ impl FuseSession { } /// Expose the associated FUSE session file. - pub fn get_fuse_file(&mut self) -> Option<&File> { + pub fn get_fuse_file(&self) -> Option<&File> { self.file.as_ref() } diff --git a/src/transport/fusedev/macos_session.rs b/src/transport/fusedev/macos_session.rs index 272ef8eaf..158159e9b 100644 --- a/src/transport/fusedev/macos_session.rs +++ b/src/transport/fusedev/macos_session.rs @@ -136,7 +136,7 @@ impl FuseSession { } /// Expose the associated FUSE session file. - pub fn get_fuse_file(&mut self) -> Option<&File> { + pub fn get_fuse_file(&self) -> Option<&File> { self.file.as_ref() }