[thin_check (rust)] squash a lot of warnings

This commit is contained in:
Joe Thornber
2020-07-30 10:12:51 +01:00
parent f7623e6264
commit de172147d3
4 changed files with 13 additions and 37 deletions

View File

@@ -1,11 +1,9 @@
use crate::block_manager::*;
use crate::block_manager::*;
use crate::checksum::*;
use anyhow::{anyhow, Result};
use nom::{bytes::complete::*, number::complete::*, IResult};
pub const SUPERBLOCK_LOCATION: u64 = 0;
const UUID_SIZE: usize = 16;
//const UUID_SIZE: usize = 16;
const SPACE_MAP_ROOT_SIZE: usize = 128;
#[derive(Debug)]
@@ -23,6 +21,7 @@ pub struct Superblock {
pub data_block_size: u32,
}
/*
pub enum CheckSeverity {
Fatal,
NonFatal,
@@ -48,6 +47,7 @@ struct SuperblockError {
severity: CheckSeverity,
kind: ErrorType,
}
*/
fn unpack(data: &[u8]) -> IResult<&[u8], Superblock> {
let (i, _csum) = le_u32(data)?;