allow(clippy::cast_ptr_alignment)
This commit is contained in:
		@ -131,6 +131,7 @@ impl DynamicIndexReader {
 | 
				
			|||||||
        Ok(())
 | 
					        Ok(())
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    #[allow(clippy::cast_ptr_alignment)]
 | 
				
			||||||
    pub fn chunk_info(&self, pos: usize) -> Result<(u64, u64, [u8; 32]), Error> {
 | 
					    pub fn chunk_info(&self, pos: usize) -> Result<(u64, u64, [u8; 32]), Error> {
 | 
				
			||||||
        if pos >= self.index_entries {
 | 
					        if pos >= self.index_entries {
 | 
				
			||||||
            bail!("chunk index out of range");
 | 
					            bail!("chunk index out of range");
 | 
				
			||||||
@ -156,6 +157,7 @@ impl DynamicIndexReader {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #[inline]
 | 
					    #[inline]
 | 
				
			||||||
 | 
					    #[allow(clippy::cast_ptr_alignment)]
 | 
				
			||||||
    fn chunk_end(&self, pos: usize) -> u64 {
 | 
					    fn chunk_end(&self, pos: usize) -> u64 {
 | 
				
			||||||
        if pos >= self.index_entries {
 | 
					        if pos >= self.index_entries {
 | 
				
			||||||
            panic!("chunk index out of range");
 | 
					            panic!("chunk index out of range");
 | 
				
			||||||
 | 
				
			|||||||
@ -256,6 +256,7 @@ impl Drop for FixedIndexWriter {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
impl FixedIndexWriter {
 | 
					impl FixedIndexWriter {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    #[allow(clippy::cast_ptr_alignment)]
 | 
				
			||||||
    pub fn create(store: Arc<ChunkStore>, path: &Path, size: usize, chunk_size: usize) -> Result<Self, Error> {
 | 
					    pub fn create(store: Arc<ChunkStore>, path: &Path, size: usize, chunk_size: usize) -> Result<Self, Error> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let shared_lock = store.try_shared_lock()?;
 | 
					        let shared_lock = store.try_shared_lock()?;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user