Skip to content

Commit 9cf5ed4

Browse files
blitzlauralt
authored andcommitted
guest_memory: avoid needless borrow warning
Signed-off-by: Julian Stecklina <[email protected]>
1 parent 93e0173 commit 9cf5ed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guest_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl FileOffset {
157157

158158
/// Returns a reference to the inner `File` object.
159159
pub fn file(&self) -> &File {
160-
&self.file.as_ref()
160+
self.file.as_ref()
161161
}
162162

163163
/// Return a reference to the inner `Arc<File>` object.

0 commit comments

Comments
 (0)