File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ impl core::ops::Deref for BitmapVec {
166166    fn  deref ( & self )  -> & Bitmap  { 
167167        let  ptr = if  self . nbits  <= BITS_PER_LONG  { 
168168            // SAFETY: Bitmap is represented inline. 
169+             #[ allow( unused_unsafe,  reason = "Safe since Rust 1.92.0" ) ]  
169170            unsafe  {  core:: ptr:: addr_of!( self . repr. bitmap)  } 
170171        }  else  { 
171172            // SAFETY: Bitmap is represented as array of `unsigned long`. 
@@ -182,6 +183,7 @@ impl core::ops::DerefMut for BitmapVec {
182183    fn  deref_mut ( & mut  self )  -> & mut  Bitmap  { 
183184        let  ptr = if  self . nbits  <= BITS_PER_LONG  { 
184185            // SAFETY: Bitmap is represented inline. 
186+             #[ allow( unused_unsafe,  reason = "Safe since Rust 1.92.0" ) ]  
185187            unsafe  {  core:: ptr:: addr_of_mut!( self . repr. bitmap)  } 
186188        }  else  { 
187189            // SAFETY: Bitmap is represented as array of `unsigned long`. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments