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
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -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(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue