forked from M-Labs/rust-fatfs
Fix warnings.
This commit is contained in:
parent
6355db8073
commit
37f52e4024
@ -4,7 +4,6 @@ extern crate chrono;
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::io::BufReader;
|
||||
use std::str;
|
||||
use chrono::{DateTime, Local};
|
||||
|
||||
use fatfs::FileSystem;
|
||||
|
@ -87,8 +87,8 @@ pub struct FileSystem<'a> {
|
||||
|
||||
impl <'a> FileSystem<'a> {
|
||||
|
||||
pub fn new<T: ReadSeek>(mut rdr: &'a mut T) -> io::Result<FileSystem<'a>> {
|
||||
let boot = Self::read_boot_record(&mut *rdr)?;
|
||||
pub fn new<T: ReadSeek>(rdr: &'a mut T) -> io::Result<FileSystem<'a>> {
|
||||
let boot = Self::read_boot_record(rdr)?;
|
||||
if boot.boot_sig != [0x55, 0xAA] {
|
||||
return Err(Error::new(ErrorKind::Other, "invalid signature"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user