- chore: ran cargo fix on the codebase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
mod launcher;
|
||||
|
||||
use std::process::{Command};
|
||||
use std::process::Command;
|
||||
use std::{env, io};
|
||||
use tracing::{debug, error, info, Level};
|
||||
use url::Url;
|
||||
@@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let args: Vec<String> = env::args().collect();
|
||||
if args.len() < 2 {
|
||||
error!("Usage: launcher <url>");
|
||||
return Err(std::io::Error::new(std::io::ErrorKind::InvalidInput, "url"))?
|
||||
return Err(std::io::Error::new(std::io::ErrorKind::InvalidInput, "url"))?;
|
||||
}
|
||||
|
||||
let uri = &args[1];
|
||||
@@ -44,7 +44,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
"update" => Commands::Update,
|
||||
other => return Err(format!("Unknown method: {}", other).into()),
|
||||
};
|
||||
|
||||
|
||||
match action {
|
||||
Commands::Launch => {
|
||||
debug!("launching with URL {}", uri);
|
||||
|
||||
Reference in New Issue
Block a user