chore: fix clippy errors

This commit is contained in:
Bartosz Sypytkowski 2024-10-28 13:09:12 +01:00
parent ae6d8b1313
commit 547761d899
3 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,7 @@ pub enum Error {
#[error("URL error: {0}")] #[error("URL error: {0}")]
Url(#[from] UrlError), Url(#[from] UrlError),
#[error("HTTP error: {}", .0.status())] #[error("HTTP error: {}", .0.status())]
Http(Response<Option<Vec<u8>>>), Http(Box<Response<Option<Vec<u8>>>>),
#[error("HTTP format error: {0}")] #[error("HTTP format error: {0}")]
HttpFormat(#[from] http::Error), HttpFormat(#[from] http::Error),
#[error("Parsing blobs is unsupported")] #[error("Parsing blobs is unsupported")]

View File

@ -152,7 +152,7 @@ impl From<Error> for crate::Error {
Error::Utf8 => crate::Error::Utf8, Error::Utf8 => crate::Error::Utf8,
Error::AttackAttempt => crate::Error::AttackAttempt, Error::AttackAttempt => crate::Error::AttackAttempt,
Error::Url(inner) => crate::Error::Url(inner.into()), Error::Url(inner) => crate::Error::Url(inner.into()),
Error::Http(inner) => crate::Error::Http(inner), Error::Http(inner) => crate::Error::Http(inner.into()),
Error::HttpFormat(inner) => crate::Error::HttpFormat(inner), Error::HttpFormat(inner) => crate::Error::HttpFormat(inner),
} }
} }

View File

@ -854,6 +854,7 @@ struct CollabPersister {
} }
impl CollabPersister { impl CollabPersister {
#[allow(clippy::too_many_arguments)]
pub fn new( pub fn new(
uid: i64, uid: i64,
workspace_id: String, workspace_id: String,