Skip to content

Commit c59f5c1

Browse files
committed
Fix improper &mut self on LinkedHashSet::back`
1 parent 478ccaa commit c59f5c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linked_hash_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ where
250250
}
251251

252252
#[inline]
253-
pub fn back(&mut self) -> Option<&T> {
253+
pub fn back(&self) -> Option<&T> {
254254
self.map.back().map(|(k, _)| k)
255255
}
256256

0 commit comments

Comments
 (0)