From 5576ed6153e761721b7f5fea77b24ac3c63a3a3d Mon Sep 17 00:00:00 2001 From: Matthias Goergens Date: Mon, 17 Apr 2023 12:27:48 +0800 Subject: [PATCH] Remove unecessary mut reference Signed-off-by: Peng Tao --- src/transport/fusedev/linux_session.rs | 2 +- src/transport/fusedev/macos_session.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() }