chore: cargo clippy
This commit is contained in:
@@ -37,7 +37,7 @@ impl<T, const CAP: usize> Stack<T, CAP> {
|
||||
.get_mut(self.top)
|
||||
.map_or_else(
|
||||
|| Err(Error::EvalError("stack overflow".to_string())),
|
||||
|ok| Ok(ok),
|
||||
Ok,
|
||||
)?
|
||||
.write(item);
|
||||
self.top += 1;
|
||||
|
||||
Reference in New Issue
Block a user