forked from M-Labs/rust-fatfs
Fix warnings in Rust 1.25
This commit is contained in:
parent
8bb24994e0
commit
e9dec65318
22
Cargo.lock
generated
22
Cargo.lock
generated
@ -1,14 +1,3 @@
|
|||||||
[root]
|
|
||||||
name = "fatfs"
|
|
||||||
version = "0.2.0"
|
|
||||||
dependencies = [
|
|
||||||
"bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "aho-corasick"
|
name = "aho-corasick"
|
||||||
version = "0.6.3"
|
version = "0.6.3"
|
||||||
@ -45,6 +34,17 @@ dependencies = [
|
|||||||
"regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"regex 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fatfs"
|
||||||
|
version = "0.2.0"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"byteorder 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"chrono 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"env_logger 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "kernel32-sys"
|
name = "kernel32-sys"
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
|
@ -2,7 +2,6 @@ extern crate fatfs;
|
|||||||
|
|
||||||
use std::fs::OpenOptions;
|
use std::fs::OpenOptions;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::str;
|
|
||||||
|
|
||||||
use fatfs::{FileSystem, FsOptions, BufStream};
|
use fatfs::{FileSystem, FsOptions, BufStream};
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
use std::ascii::AsciiExt;
|
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::{ErrorKind, SeekFrom};
|
use std::io::{ErrorKind, SeekFrom};
|
||||||
|
@ -209,7 +209,7 @@ impl FsOptions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) type FileSystemRef<'a, 'b: 'a> = &'a FileSystem<'b>;
|
pub(crate) type FileSystemRef<'a, 'b> = &'a FileSystem<'b>;
|
||||||
|
|
||||||
/// FAT filesystem main struct.
|
/// FAT filesystem main struct.
|
||||||
pub struct FileSystem<'a> {
|
pub struct FileSystem<'a> {
|
||||||
|
Loading…
Reference in New Issue
Block a user