mirror of
https://github.com/bootandy/dust.git
synced 2025-12-06 04:41:09 -08:00
remove depth from config.toml and fix style issues
Signed-off-by: Efertone <efertone@pm.me>
This commit is contained in:
@@ -26,6 +26,3 @@ ignore-hidden=true
|
||||
|
||||
# print sizes in powers of 1000 (e.g., 1.1G)
|
||||
iso=true
|
||||
|
||||
# Depth to show
|
||||
depth=1
|
||||
|
||||
@@ -63,7 +63,7 @@ impl Config {
|
||||
pub fn get_depth(&self, options: &ArgMatches) -> usize {
|
||||
if let Some(v) = options.value_of("depth") {
|
||||
if let Ok(v) = v.parse::<usize>() {
|
||||
return v
|
||||
return v;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ pub fn get_config() -> Config {
|
||||
mod tests {
|
||||
#[allow(unused_imports)]
|
||||
use super::*;
|
||||
use clap::{Command, Arg, ArgMatches};
|
||||
use clap::{Arg, ArgMatches, Command};
|
||||
|
||||
#[test]
|
||||
fn test_conversion() {
|
||||
|
||||
Reference in New Issue
Block a user