fn check_version(version: &[u8]) -> crate::Result<()> {
    // probably shouldn't do this, but if version is incorrect reject snapshot with error
    if version != VERSION {
        Err(crate::Error::SnapshotError("Snapshot version is incorrect".into()))
    } else {
        Ok(())
    }
}
/// check the version on the snapshot.
check the version on the snapshot.
check the version on the snapshot .
fn check_version(version: &[u8]) -> crate::Result<()> {
    // probably shouldn't do this, but if version is incorrect reject snapshot with error
    if version != VERSION {
        Err(crate::Error::SnapshotError("Snapshot version is incorrect".into()))
    } else {
        Ok(())
    }
}
fn check_version ( version : & [ u8 ] ) -> crate :: Result < ( ) > { // probably shouldn't do this, but if version is incorrect reject snapshot with error if version != VERSION { Err ( crate :: Error :: SnapshotError ( " " . into ( ) ) ) } else { Ok ( ( ) ) } }
check the version on the snapshot.
check the version on the snapshot .
version
&[u8]