X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fapi_common%2Fsrc%2Frequest.rs;h=82126887ab4c66cd4b4ed12346ff3ad6907364cc;hb=92568956353f21649ed9aff68b42699c9d036f30;hp=dc09ecaa7f3f69a88c852498064b71eb34ee1d53;hpb=93225e5ddfd48e613afe51984243112a1bedfcc2;p=lemmy.git diff --git a/crates/api_common/src/request.rs b/crates/api_common/src/request.rs index dc09ecaa..82126887 100644 --- a/crates/api_common/src/request.rs +++ b/crates/api_common/src/request.rs @@ -270,6 +270,9 @@ pub fn build_user_agent(settings: &Settings) -> String { #[cfg(test)] mod tests { + #![allow(clippy::unwrap_used)] + #![allow(clippy::indexing_slicing)] + use crate::request::{ build_user_agent, fetch_site_metadata,