mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-29 02:53:06 +00:00
add #[allow(unused)] for compatibility
This commit is contained in:
parent
7fb0347e93
commit
e1a4ed87f2
@ -95,6 +95,9 @@ impl<'dir> File<'dir> {
|
||||
/// against a pre-compiled list of extensions which are known to only exist
|
||||
/// within ASCII, so it’s alright.
|
||||
fn ext(path: &Path) -> Option<String> {
|
||||
#[allow(unused)]
|
||||
use std::ascii::AsciiExt;
|
||||
|
||||
let name = match path.file_name() {
|
||||
Some(f) => f.to_string_lossy().to_string(),
|
||||
None => return None,
|
||||
|
Loading…
Reference in New Issue
Block a user