mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-06 14:28:02 +00:00
Resolve most Clippy lint issues
This commit is contained in:
parent
8e769e37f6
commit
70dce1c230
25 changed files with 84 additions and 107 deletions
|
@ -221,7 +221,7 @@ impl Hash for OriginalLocation {
|
|||
}
|
||||
}
|
||||
impl OriginalLocation {
|
||||
pub fn inputs<'a>(&'a self, index: usize) -> impl Iterator<Item = Source> + 'a {
|
||||
pub fn inputs(&self, index: usize) -> impl Iterator<Item = Source> + '_ {
|
||||
[(index >= self.skip_inputs).then(|| Source {
|
||||
node: self.path.clone().unwrap_or_default(),
|
||||
index: self.inputs_exposed.iter().take(index - self.skip_inputs).filter(|&&exposed| exposed).count(),
|
||||
|
@ -230,7 +230,7 @@ impl OriginalLocation {
|
|||
.flatten()
|
||||
.chain(self.inputs_source.iter().filter(move |x| *x.1 == index).map(|(source, _)| source.clone()))
|
||||
}
|
||||
pub fn outputs<'a>(&'a self, index: usize) -> impl Iterator<Item = Source> + 'a {
|
||||
pub fn outputs(&self, index: usize) -> impl Iterator<Item = Source> + '_ {
|
||||
[Source {
|
||||
node: self.path.clone().unwrap_or_default(),
|
||||
index,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue