clippy-fixes
This commit is contained in:
@@ -37,7 +37,7 @@ pub async fn proxy_handler(
|
||||
let mut redis = state.redis.clone();
|
||||
match find_file_by_pattern(&mut redis, &base_filename).await {
|
||||
Ok(Some(found_file)) => {
|
||||
if let Some(found_ext) = found_file.split('.').last() {
|
||||
if let Some(found_ext) = found_file.split('.').next_back() {
|
||||
get_mime_type(found_ext)
|
||||
.unwrap_or("application/octet-stream")
|
||||
.to_string()
|
||||
@@ -80,7 +80,7 @@ pub async fn proxy_handler(
|
||||
warn!("Serving original file without resizing");
|
||||
serve_file(&stored_path, &state, shout_id).await
|
||||
} else {
|
||||
let closest: u32 = find_closest_width(requested_width as u32);
|
||||
let closest: u32 = find_closest_width(requested_width);
|
||||
warn!(
|
||||
"Calculated closest width: {} for requested: {}",
|
||||
closest, requested_width
|
||||
|
||||
Reference in New Issue
Block a user