mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-19 07:04:21 +01:00
style: address clippy clippy::double_ended_iterator_last, and clippy::manual_ok_err (#2025)
This commit is contained in:
@@ -63,7 +63,7 @@ impl Resource {
|
||||
Some(n) => n,
|
||||
None => url
|
||||
.path_segments()
|
||||
.and_then(|segments| segments.last())
|
||||
.and_then(|mut segments| segments.next_back())
|
||||
.unwrap_or("unnamed")
|
||||
.to_string(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user