Skip to content

Commit

Permalink
Remove unecessary mut reference
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
matthiasgoergens authored and bergwolf committed Apr 19, 2023
1 parent b47a7ee commit 5576ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/transport/fusedev/linux_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
2 changes: 1 addition & 1 deletion src/transport/fusedev/macos_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 5576ed6

Please sign in to comment.