aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorlukeflo2024-12-23 21:03:48 +0100
committerlukeflo2024-12-23 21:03:48 +0100
commit57126d7f42b871aa1835b056fbe74179c13e53b0 (patch)
treebf81db50446aa7a8e06553f4e8aff97ea0cfb816 /src/main.rs
parentad5c2cb586616eca99fc1db0efaaa0ff5aa97144 (diff)
parent9a33a794167d60ce35030f007674f6e9424b1ff3 (diff)
downloadbibiman-57126d7f42b871aa1835b056fbe74179c13e53b0.tar.gz
bibiman-57126d7f42b871aa1835b056fbe74179c13e53b0.zip
Merge branch 'add-entry-via-doi'
+ implement the functionality to add an entry via DOI + responsive error messages if resolving of DOI don't work + keep changes to choosen file to minimum
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index b1160e2..78c5075 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -29,7 +29,7 @@ pub mod tui;
#[tokio::main]
async fn main() -> Result<()> {
// Parse CLI arguments
- let parsed_args = CLIArgs::parse_args().unwrap();
+ let mut parsed_args = CLIArgs::parse_args().unwrap();
// Print help if -h/--help flag is passed and exit
if parsed_args.helparg {
@@ -48,6 +48,6 @@ async fn main() -> Result<()> {
// Create an application.
let mut app = App::new(&parsed_args)?;
- app.run(&parsed_args).await?;
+ app.run(&mut parsed_args).await?;
Ok(())
}