1
Fork 0

Use generic NonZero everywhere else.

This commit is contained in:
Markus Reiter 2024-02-19 05:57:05 +01:00
parent 36d194f561
commit 0c474acdfa
No known key found for this signature in database
GPG key ID: 245293B51702655B
3 changed files with 4 additions and 3 deletions

View file

@ -136,7 +136,7 @@ thread_local! {
arena: arena::Arena::new(),
names: fxhash::FxHashMap::default(),
strings: Vec::new(),
// Start with a base of 1 to make sure that `NonZeroU32` works.
// Start with a base of 1 to make sure that `NonZero<u32>` works.
sym_base: NonZero::new(1).unwrap(),
});
}