aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2024-01-31 11:01:18 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2024-01-31 11:01:18 +0100
commit22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e (patch)
tree885d59c3bfb961b058b2ad7a7ec8915750c54a3b /src/main.rs
parentc27919a757ac15fe49393ef91d90a525a3e501ee (diff)
downloadaerogramme-22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e.tar.gz
aerogramme-22f0eb901ae1f4a38a93bcfc268ebe0f74a6482e.zip
format + fix storage bug
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 72bce83..12a5895 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -34,7 +34,12 @@ struct Args {
#[clap(long)]
dev: bool,
- #[clap(short, long, env = "AEROGRAMME_CONFIG", default_value = "aerogramme.toml")]
+ #[clap(
+ short,
+ long,
+ env = "AEROGRAMME_CONFIG",
+ default_value = "aerogramme.toml"
+ )]
/// Path to the main Aerogramme configuration file
config_file: PathBuf,
}
@@ -187,7 +192,10 @@ async fn main() -> Result<()> {
hostname: "example.tld".to_string(),
}),
auth: Some(AuthConfig {
- bind_addr: SocketAddr::new(IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), 12345),
+ bind_addr: SocketAddr::new(
+ IpAddr::V6(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)),
+ 12345,
+ ),
}),
users: UserManagement::Demo,
})