Skip to content

Commit b19c6a1

Browse files
committed
Remove superfluous repeated const Error::General
1 parent bcb6f59 commit b19c6a1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/context/minimal.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ impl Context for Minimal {
4040
direction: Direction,
4141
operands: &mut dyn CoordinateSet,
4242
) -> Result<usize, Error> {
43-
const BAD_ID_MESSAGE: Error = Error::General("Minimal: Unknown operator id");
4443
let op = self.operators.get(&op).ok_or(BAD_ID_MESSAGE)?;
4544
Ok(op.apply(self, operands, direction))
4645
}

0 commit comments

Comments
 (0)