mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
janitor: manual cargo clippy fixes
Semi-random selection of clippy topics that were uncontroversial before:-). Leaves about 84 deduplicated issues in the code base according to clippy from nightly.
This commit is contained in:
parent
77c85aa703
commit
28b96ca6f6
25 changed files with 57 additions and 71 deletions
|
@ -307,11 +307,7 @@ impl<'a> Iterator for Components<'a> {
|
|||
type Item = PathComponent<'a>;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
let Some((result, new_offset, separator)) =
|
||||
components(self.path, self.offset, &self.separator)
|
||||
else {
|
||||
return None;
|
||||
};
|
||||
let (result, new_offset, separator) = components(self.path, self.offset, &self.separator)?;
|
||||
self.offset = new_offset;
|
||||
self.separator = Some(separator);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue