don't use #[allow(..., reason = "...")] since that's not stable yet on rust 1.80.1

This commit is contained in:
Jacob Lifshay 2024-10-07 22:05:30 -07:00
parent ed1aea41f3
commit 017c14a2f1
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -607,10 +607,8 @@ impl BlockStack {
pub struct Id(NonZeroU64); pub struct Id(NonZeroU64);
impl Id { impl Id {
#[allow( // returns a different value each time, so there isn't really a default value
clippy::new_without_default, #[allow(clippy::new_without_default)]
reason = "returns a different value each time, so there isn't really a default value"
)]
pub fn new() -> Self { pub fn new() -> Self {
static NEXT_ID: AtomicU64 = AtomicU64::new(1); static NEXT_ID: AtomicU64 = AtomicU64::new(1);
Self( Self(