formatting
This commit is contained in:
parent
6c9d912df3
commit
28a36d80cd
1 changed files with 10 additions and 4 deletions
|
@ -6,6 +6,8 @@ use std::collections::HashSet;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
use std::path::{Path,PathBuf};
|
use std::path::{Path,PathBuf};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(StructOpt)]
|
#[derive(StructOpt)]
|
||||||
#[structopt(about="Recursively get images")]
|
#[structopt(about="Recursively get images")]
|
||||||
struct CLIArguments {
|
struct CLIArguments {
|
||||||
|
@ -34,6 +36,8 @@ struct CLIArguments {
|
||||||
targets: Vec<String>,
|
targets: Vec<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>>{
|
fn main() -> Result<(), Box<dyn std::error::Error>>{
|
||||||
let args = {
|
let args = {
|
||||||
let mut args = CLIArguments::from_args();
|
let mut args = CLIArguments::from_args();
|
||||||
|
@ -64,6 +68,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>>{
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
struct Registry<'a> {
|
struct Registry<'a> {
|
||||||
registry: Vec<(std::fs::Metadata, PathBuf)>,
|
registry: Vec<(std::fs::Metadata, PathBuf)>,
|
||||||
valid_extensions: HashSet<&'a str>
|
valid_extensions: HashSet<&'a str>
|
||||||
|
|
Loading…
Add table
Reference in a new issue