diff --git a/src/nouveau/compiler/nak_ir.rs b/src/nouveau/compiler/nak_ir.rs index 51446bf8b02..c5a8daa4be8 100644 --- a/src/nouveau/compiler/nak_ir.rs +++ b/src/nouveau/compiler/nak_ir.rs @@ -2395,9 +2395,9 @@ pub struct Instr { } impl Instr { - pub fn new(op: Op) -> Instr { + pub fn new(op: impl Into) -> Instr { Instr { - op: op, + op: op.into(), pred: Pred::None, pred_inv: false, deps: InstrDeps::new(),