cargo fmt

This commit is contained in:
BenjaminBrienen 2025-03-10 12:42:27 +01:00
parent 87f837cec7
commit 7535bb4661
571 changed files with 2210 additions and 2458 deletions

View file

@ -10,7 +10,7 @@ use std::{
};
use dashmap::{DashMap, SharedValue};
use hashbrown::{hash_map::RawEntryMut, HashMap};
use hashbrown::{HashMap, hash_map::RawEntryMut};
use rustc_hash::FxHasher;
use triomphe::Arc;
@ -21,7 +21,7 @@ type Guard<T> = dashmap::RwLockWriteGuard<
>;
mod symbol;
pub use self::symbol::{symbols as sym, Symbol};
pub use self::symbol::{Symbol, symbols as sym};
pub struct Interned<T: Internable + ?Sized> {
arc: Arc<T>,

View file

@ -11,7 +11,7 @@ use std::{
};
use dashmap::{DashMap, SharedValue};
use hashbrown::{hash_map::RawEntryMut, HashMap};
use hashbrown::{HashMap, hash_map::RawEntryMut};
use rustc_hash::FxHasher;
use triomphe::Arc;
@ -160,7 +160,7 @@ impl Symbol {
SharedValue::new(()),
)
.0
.0,
.0,
),
},
}
@ -236,7 +236,7 @@ impl Symbol {
RawEntryMut::Vacant(_) => unreachable!(),
}
.0
.0;
.0;
// SAFETY: We're dropping, we have ownership.
ManuallyDrop::into_inner(unsafe { ptr.try_as_arc_owned().unwrap() });
debug_assert_eq!(Arc::count(arc), 1);

View file

@ -7,8 +7,8 @@ use dashmap::{DashMap, SharedValue};
use rustc_hash::FxHasher;
use crate::{
symbol::{SymbolProxy, TaggedArcPtr},
Symbol,
symbol::{SymbolProxy, TaggedArcPtr},
};
macro_rules! define_symbols {