mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 05:18:19 +00:00
Remove warnings from build and satisfied clippy (#1288)
* Prefixed unused functions with underscore * Applied clippy lints * Fixed some warnings and removed some `allow` statements
This commit is contained in:
parent
054acd3cc9
commit
70fcb35444
33 changed files with 54 additions and 60 deletions
|
@ -614,7 +614,7 @@ impl NodeNetwork {
|
|||
fn replace_network_outputs(&mut self, old_output: NodeOutput, new_output: NodeOutput) {
|
||||
for output in self.outputs.iter_mut() {
|
||||
if *output == old_output {
|
||||
*output = new_output.clone();
|
||||
*output = new_output;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -544,9 +544,9 @@ impl TypingContext {
|
|||
if matches!(input, Type::Generic(_)) {
|
||||
return Err(format!("Generic types are not supported as inputs yet {:?} occured in {:?}", &input, node.identifier));
|
||||
}
|
||||
if parameters.iter().any(|p| match p {
|
||||
Type::Fn(_, b) if matches!(b.as_ref(), Type::Generic(_)) => true,
|
||||
_ => false,
|
||||
if parameters.iter().any(|p| {
|
||||
matches!(p,
|
||||
Type::Fn(_, b) if matches!(b.as_ref(), Type::Generic(_)))
|
||||
}) {
|
||||
return Err(format!("Generic types are not supported in parameters: {:?} occured in {:?}", parameters, node.identifier));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue