diff --git a/src/graph.rs b/src/graph.rs index 1d33e5f0..98037fcb 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -27,7 +27,7 @@ pub struct OperatorNode { name: Option, inputs: Vec>, outputs: Vec>, - operator: Box, + operator: Box, } pub struct ValueNode { @@ -250,7 +250,7 @@ impl Graph { pub fn add_op( &mut self, name: Option<&str>, - op: Box, + op: Box, inputs: &[Option], outputs: &[Option], ) -> NodeId { diff --git a/src/model.rs b/src/model.rs index 6a3104b1..20e3c69b 100644 --- a/src/model.rs +++ b/src/model.rs @@ -245,7 +245,7 @@ fn array_from_iter>( } /// Result of deserializing an operator node from a model file. -pub type ReadOpResult = Result, ReadOpError>; +pub type ReadOpResult = Result, ReadOpError>; /// A function that deserializes an operator node. pub type ReadOpFunction = dyn Fn(&OperatorNode) -> ReadOpResult;