aboutsummaryrefslogtreecommitdiff
path: root/src/api/web.rs
diff options
context:
space:
mode:
authorBlackDex <[email protected]>2022-12-29 14:11:52 +0100
committerMathijs van Veluw <[email protected]>2023-01-09 19:12:51 +0100
commitd30878c4eaf71c2fd4c799bd9174a2abe09a7b62 (patch)
treed187bfe53e6b1e034967b1e3c5ef7bb0790a6156 /src/api/web.rs
parent988d24927ea3b586331e02e33fa8648eb9d8fc8f (diff)
downloadvaultwarden-d30878c4eaf71c2fd4c799bd9174a2abe09a7b62.tar.gz
vaultwarden-d30878c4eaf71c2fd4c799bd9174a2abe09a7b62.zip
Resolve uninlined_format_args clippy warnings
The upcomming release of Rust 1.67.0 will warn on `uninlined_format_args`. This PR resolves that by inlining all these items. It also looks nicer.
Diffstat (limited to 'src/api/web.rs')
-rw-r--r--src/api/web.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/web.rs b/src/api/web.rs
index b8d1bb51..6e3921ed 100644
--- a/src/api/web.rs
+++ b/src/api/web.rs
@@ -121,6 +121,6 @@ pub fn static_files(filename: String) -> Result<(ContentType, &'static [u8]), Er
"jquery-3.6.2.slim.js" => {
Ok((ContentType::JavaScript, include_bytes!("../static/scripts/jquery-3.6.2.slim.js")))
}
- _ => err!(format!("Static file not found: {}", filename)),
+ _ => err!(format!("Static file not found: {filename}")),
}
}