get rid of explicit type decleration
This commit is contained in:
@ -52,7 +52,7 @@ fn run_with_input(
|
|||||||
show_usage();
|
show_usage();
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
let value: String = arguments[2].clone();
|
let value = arguments[2].clone();
|
||||||
|
|
||||||
match arguments[1].as_str() {
|
match arguments[1].as_str() {
|
||||||
"generate" => generate_file(client, Option::Some(value))?,
|
"generate" => generate_file(client, Option::Some(value))?,
|
||||||
@ -261,7 +261,7 @@ fn add_artist_with_custom_name(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn Error>> {
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
let args: Vec<String> = args().collect();
|
let args = args().collect::<Vec<String>>();
|
||||||
let mut client = Client::connect("host=192.168.0.10 port=28945 user=hentai password=h99nqaNPhpfbuuhCDwQXLpZAnoVTjSQP7taoqmQhpzc2rPLVC4JUAKxAHfuuhuU9", NoTls)?;
|
let mut client = Client::connect("host=192.168.0.10 port=28945 user=hentai password=h99nqaNPhpfbuuhCDwQXLpZAnoVTjSQP7taoqmQhpzc2rPLVC4JUAKxAHfuuhuU9", NoTls)?;
|
||||||
|
|
||||||
match args.len() {
|
match args.len() {
|
||||||
|
Reference in New Issue
Block a user