don't use #[allow(..., reason = "...")] since that's not stable yet on rust 1.80.1
This commit is contained in:
parent
ed1aea41f3
commit
017c14a2f1
|
@ -607,10 +607,8 @@ impl BlockStack {
|
|||
pub struct Id(NonZeroU64);
|
||||
|
||||
impl Id {
|
||||
#[allow(
|
||||
clippy::new_without_default,
|
||||
reason = "returns a different value each time, so there isn't really a default value"
|
||||
)]
|
||||
// returns a different value each time, so there isn't really a default value
|
||||
#[allow(clippy::new_without_default)]
|
||||
pub fn new() -> Self {
|
||||
static NEXT_ID: AtomicU64 = AtomicU64::new(1);
|
||||
Self(
|
||||
|
|
Loading…
Reference in a new issue