Skip to content

Commit

Permalink
Address clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Feb 13, 2024
1 parent 89926b1 commit 90efee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deepwell/src/services/blob/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl BlobService {
/// Helper method to parse out an S3 error response and print the message (if any).
fn s3_error<T>(response: &ResponseData, action: &str) -> Result<T> {
let error_message = match str::from_utf8(response.bytes()) {
Ok(m) if m.is_empty() => "(no content)",
Ok("") => "(no content)",
Ok(m) => m,
Err(_) => "(invalid UTF-8)",
};
Expand Down
2 changes: 1 addition & 1 deletion deepwell/src/services/view/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ impl ViewService {
// Get user data from session token (if present)
let user_session = match session_token {
None => None,
Some(token) if token.is_empty() => None,
Some("") => None,
Some(token) => {
let session = SessionService::get(ctx, token).await?;
let user = UserService::get(ctx, Reference::Id(session.user_id)).await?;
Expand Down

0 comments on commit 90efee1

Please sign in to comment.