Skip to content

Commit

Permalink
Apply minor fixes. (#61)
Browse files Browse the repository at this point in the history
- fix warnings.
- rename readme.
- missing EOF newline.
  • Loading branch information
joseluis authored Oct 30, 2024
1 parent 10f545e commit e58b85f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/unsafe_self_cell.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::missing_safety_doc, clippy::needless_lifetimes)]

use core::cell::UnsafeCell;
use core::marker::PhantomData;
Expand Down Expand Up @@ -280,6 +280,7 @@ impl<T> MutBorrow<T> {
///
/// Will panic if called anywhere but in the dependent constructor. Will also panic if called
/// more than once.
#[allow(clippy::mut_from_ref)]
pub fn borrow_mut(&self) -> &mut T {
// Ensure this function can only be called once.
// Relaxed should be fine, because only one thread could ever read `false` anyway,
Expand Down
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -euxo pipefail
rm Cargo.lock
cargo +1.36.0-x86_64-unknown-linux-gnu test --features=old_rust --test self_cell
cargo test
cargo +nightly miri test --test self_cell
cargo +nightly miri test --test self_cell

0 comments on commit e58b85f

Please sign in to comment.