mirror of
https://github.com/jafioti/luminal.git
synced 2026-06-01 21:49:47 +09:00
clippy
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<img href="luminalai.com" alt="Screenshot 2025-08-14 at 9 18 54 PM" src="https://github.com/user-attachments/assets/c5832634-55d5-45b7-ba65-6efe36afce4a" />
|
||||
|
||||
[](https://github.com/jafioti/luminal/actions)
|
||||
[](https://docs.luminalai.com)
|
||||
[](https://docs.luminalai.com)
|
||||
[](https://crates.io/crates/luminal)
|
||||
[](https://discord.gg/APjuwHAbGy)
|
||||
|
||||
|
||||
@@ -329,7 +329,7 @@ impl Graph {
|
||||
/// .finish();
|
||||
/// let b = GraphTensor::from_id(b_id, a.shape, a.graph());
|
||||
/// ```
|
||||
pub fn add_op<O: Operator + 'static>(&mut self, op: O) -> NewOp {
|
||||
pub fn add_op<O: Operator + 'static>(&mut self, op: O) -> NewOp<'_> {
|
||||
self.linearized_graph = None;
|
||||
NewOp {
|
||||
new_op_id: self.graph.add_node(Box::new(op)),
|
||||
@@ -338,7 +338,7 @@ impl Graph {
|
||||
}
|
||||
}
|
||||
/// Add op on the graph, and get back a NewOp. Just like add_op, except a boxed op is expected.
|
||||
pub fn add_boxed_op(&mut self, op: Box<dyn Operator + 'static>) -> NewOp {
|
||||
pub fn add_boxed_op(&mut self, op: Box<dyn Operator + 'static>) -> NewOp<'_> {
|
||||
self.linearized_graph = None;
|
||||
NewOp {
|
||||
new_op_id: self.graph.add_node(op),
|
||||
|
||||
Reference in New Issue
Block a user