Skip to content

Commit

Permalink
[FIX] fix .map
Browse files Browse the repository at this point in the history
  • Loading branch information
mamaicode committed Oct 12, 2023
1 parent 416524c commit 4a87b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<T> List<T> {
}
// Accessor method because fields are private, not sure how to go around it
pub fn total_listeners(&self) -> Result<usize, &str> {
self.0.lock().map(|guard| guard.len).map_err(|_| "<locked>")
self.0.lock().map(|mutex| mutex.len).map_err(|_| "<locked>")
}
}

Expand Down

0 comments on commit 4a87b35

Please sign in to comment.