Skip to content

Commit

Permalink
allow clippy rule mut_from_ref
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <[email protected]>
  • Loading branch information
onur-ozkan committed Feb 24, 2024
1 parent 0249531 commit b257398
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/symbolize/gimli/stash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl Stash {

/// Allocates a buffer of the specified size and returns a mutable reference
/// to it.
#[allow(clippy::mut_from_ref)]
pub fn allocate(&self, size: usize) -> &mut [u8] {
// SAFETY: this is the only function that ever constructs a mutable
// reference to `self.buffers`.
Expand Down

0 comments on commit b257398

Please sign in to comment.