Skip to content

Commit

Permalink
refactor: removed clippy missing panics doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Aug 13, 2024
1 parent 720b2fa commit 86c0fd5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/services/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ impl Service {
/// * The image URL is not an image.
/// * The image is too big.
/// * The user quota is met.
#[allow(clippy::missing_panics_doc)]
pub async fn get_image_by_url(&self, url: &str, maybe_user_id: Option<UserId>) -> Result<Bytes, Error> {
self.authorization_service
.authorize(ACTION::GetImageByUrl, maybe_user_id)
Expand Down
2 changes: 0 additions & 2 deletions src/services/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ impl ProfileService {
/// * An error if unable to successfully hash the password.
/// * An error if unable to change the password in the database.
/// * An error if it is not possible to authorize the action
#[allow(clippy::missing_panics_doc)]
pub async fn change_password(
&self,
maybe_user_id: Option<UserId>,
Expand Down Expand Up @@ -298,7 +297,6 @@ impl BanService {
/// * `ServiceError::InternalServerError` if unable get user from the request.
/// * An error if unable to get user profile from supplied username.
/// * An error if unable to set the ban of the user in the database.
#[allow(clippy::missing_panics_doc)]
pub async fn ban_user(&self, username_to_be_banned: &str, maybe_user_id: Option<UserId>) -> Result<(), ServiceError> {
debug!(
"user with ID {} banning username: {username_to_be_banned}",
Expand Down
1 change: 0 additions & 1 deletion src/web/api/server/v1/contexts/user/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ pub async fn renew_token_handler(
///
/// - The user account is not found.
#[allow(clippy::unused_async)]
#[allow(clippy::missing_panics_doc)]
pub async fn change_password_handler(
State(app_data): State<Arc<AppData>>,
ExtractOptionalLoggedInUser(maybe_user_id): ExtractOptionalLoggedInUser,
Expand Down

0 comments on commit 86c0fd5

Please sign in to comment.