Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ekump committed Sep 17, 2024
1 parent 6427a05 commit 6f6ad62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinybytes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Bytes {
return None;
}
// this is necessary because we want to preserve order of operations, but also need to avoid
// borrowing self as mutable and then borrowing self as immutable in the same function.
// borrowing self as mutable and then borrowing self as immutable in the same function.
let old_slice = std::mem::take(&mut self.slice);
let (result, remaining) = old_slice.split_at(n);
self.slice = remaining;
Expand Down

0 comments on commit 6f6ad62

Please sign in to comment.