diff options
| author | Fuwn <[email protected]> | 2024-06-03 15:37:20 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-03 15:37:20 +0000 |
| commit | 967774fc048b9d0738fbd13998ed77b6b70effa2 (patch) | |
| tree | e0f9d650a221476852005eeaac96224584a3a76a /crates/whirl_api/src/lib.rs | |
| parent | format: rustfmt with new rules (diff) | |
| download | whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.tar.xz whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.zip | |
refactor(crates): update idioms
Diffstat (limited to 'crates/whirl_api/src/lib.rs')
| -rw-r--r-- | crates/whirl_api/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/whirl_api/src/lib.rs b/crates/whirl_api/src/lib.rs index 589fda0..24b8136 100644 --- a/crates/whirl_api/src/lib.rs +++ b/crates/whirl_api/src/lib.rs @@ -18,6 +18,7 @@ html_logo_url = "https://raw.githubusercontent.com/Whirlsplash/assets/master/Whirl.png", html_favicon_url = "https://raw.githubusercontent.com/Whirlsplash/assets/master/Whirl.png" )] +#![allow(clippy::cast_precision_loss)] #[macro_use] extern crate log; #[macro_use] extern crate serde_derive; @@ -63,7 +64,7 @@ impl Api { #[must_use] pub fn make() -> tokio::task::JoinHandle<()> { tokio::spawn(async move { - crate::Api::listen(&*format!( + crate::Api::listen(&format!( "{}:{}", whirl_config::Config::get().whirlsplash.ip, whirl_config::Config::get().whirlsplash.api.port |