mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08: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:
committed by
Keavon Chambers
parent
054acd3cc9
commit
70fcb35444
@@ -156,7 +156,7 @@ impl BorrowTree {
|
||||
let upcasted = UpcastNode::new(value);
|
||||
let node = Box::new(upcasted) as TypeErasedBox<'_>;
|
||||
let node = NodeContainer::new(node);
|
||||
self.store_node(node.into(), id);
|
||||
self.store_node(node, id);
|
||||
}
|
||||
ConstructionArgs::Inline(_) => unimplemented!("Inline nodes are not supported yet"),
|
||||
ConstructionArgs::Nodes(ids) => {
|
||||
@@ -165,7 +165,7 @@ impl BorrowTree {
|
||||
let constructor = typing_context.constructor(id).ok_or(format!("No constructor found for node {:?}", identifier))?;
|
||||
let node = constructor(construction_nodes).await;
|
||||
let node = NodeContainer::new(node);
|
||||
self.store_node(node.into(), id);
|
||||
self.store_node(node, id);
|
||||
}
|
||||
};
|
||||
Ok(())
|
||||
|
||||
@@ -3,7 +3,7 @@ pub mod node_registry;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use dyn_any::IntoDynAny;
|
||||
|
||||
use graph_craft::document::value::TaggedValue;
|
||||
use graphene_core::*;
|
||||
use std::borrow::Cow;
|
||||
@@ -123,6 +123,6 @@ mod tests {
|
||||
let compiler = Compiler {};
|
||||
let protograph = compiler.compile_single(network, true).expect("Graph should be generated");
|
||||
|
||||
let _exec = block_on(DynamicExecutor::new(protograph)).map(|e| panic!("The network should not type check ")).unwrap_err();
|
||||
let _exec = block_on(DynamicExecutor::new(protograph)).map(|_e| panic!("The network should not type check ")).unwrap_err();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user