mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-23 12:32:00 +00:00
Fewer warnings when testing
This commit is contained in:
parent
f9f1c991cb
commit
8139cfedea
@ -1,4 +1,4 @@
|
|||||||
#![feature(collections, core, env, libc, old_io, old_path, std_misc)]
|
#![feature(collections, core, env, io, libc, old_io, old_path, std_misc)]
|
||||||
|
|
||||||
// Other platforms than macos don't need std_misc but you can't
|
// Other platforms than macos don't need std_misc but you can't
|
||||||
// use #[cfg] on features.
|
// use #[cfg] on features.
|
||||||
@ -33,6 +33,7 @@ pub mod output;
|
|||||||
pub mod term;
|
pub mod term;
|
||||||
pub mod xattr;
|
pub mod xattr;
|
||||||
|
|
||||||
|
#[cfg(not(test))]
|
||||||
struct Exa<'a> {
|
struct Exa<'a> {
|
||||||
count: usize,
|
count: usize,
|
||||||
options: Options,
|
options: Options,
|
||||||
@ -40,6 +41,7 @@ struct Exa<'a> {
|
|||||||
files: Vec<File<'a>>,
|
files: Vec<File<'a>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(test))]
|
||||||
impl<'a> Exa<'a> {
|
impl<'a> Exa<'a> {
|
||||||
fn new(options: Options) -> Exa<'a> {
|
fn new(options: Options) -> Exa<'a> {
|
||||||
Exa {
|
Exa {
|
||||||
@ -145,6 +147,7 @@ impl<'a> Exa<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(test))]
|
||||||
fn main() {
|
fn main() {
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user