summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@sequoia-pgp.org>2022-09-29 17:06:07 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2022-09-29 17:06:07 +0300
commit80e55e71e697897321ba0525000914706a369e93 (patch)
tree3c39787fe11b0d14bba4429cd24d910ac167bc86
parent959a0db322f3b04f4764f8e996e0c1aff7538840 (diff)
downloadenterprise-hello-80e55e71e697897321ba0525000914706a369e93.tar.gz
reorder
Sponsored-by: author
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 45ebbb6..d40d0fe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,3 @@
-use clap::Parser;
-use std::fs::read;
-use std::path::PathBuf;
-
fn main() {
if let Err(e) = fallible_main() {
eprintln!("ERROR: {}", e);
@@ -14,6 +10,10 @@ fn fallible_main() -> Result<(), HelloError> {
Ok(())
}
+use clap::Parser;
+use std::fs::read;
+use std::path::PathBuf;
+
#[derive(Parser)]
struct Args {
#[clap(default_value = "world")]