mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
rustfmt
This commit is contained in:
parent
159a03ad7b
commit
0a6197df97
21 changed files with 128 additions and 365 deletions
|
@ -21,9 +21,7 @@ impl Revision {
|
|||
}
|
||||
|
||||
pub(crate) fn from(g: u32) -> Self {
|
||||
Self {
|
||||
generation: NonZeroU32::new(g).unwrap(),
|
||||
}
|
||||
Self { generation: NonZeroU32::new(g).unwrap() }
|
||||
}
|
||||
|
||||
pub(crate) fn next(self) -> Revision {
|
||||
|
@ -48,9 +46,7 @@ pub(crate) struct AtomicRevision {
|
|||
|
||||
impl AtomicRevision {
|
||||
pub(crate) fn start() -> Self {
|
||||
Self {
|
||||
data: AtomicU32::new(START),
|
||||
}
|
||||
Self { data: AtomicU32::new(START) }
|
||||
}
|
||||
|
||||
pub(crate) fn load(&self) -> Revision {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue