Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pczarn committed May 31, 2024
1 parent 08bad63 commit 8bd0242
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,10 @@ impl<B: BitBlock> BitVec<B> {
pub unsafe fn get_unchecked_mut(&mut self, index: usize) -> MutBorrowedBit<B> {

Check warning on line 630 in src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

unsafe function's docs miss `# Safety` section

warning: unsafe function's docs miss `# Safety` section --> src/lib.rs:630:5 | 630 | pub unsafe fn get_unchecked_mut(&mut self, index: usize) -> MutBorrowedBit<B> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_safety_doc = note: `#[warn(clippy::missing_safety_doc)]` on by default
let value = self.get_unchecked(index);
MutBorrowedBit {
#[cfg(debug_assertions)]
old_value: value,
new_value: value,
vec: self,
vec: Rc::new(RefCell::new(self)),
index,
}
}
Expand Down

0 comments on commit 8bd0242

Please sign in to comment.