Skip to content

Commit

Permalink
Update toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
mrLSD committed Sep 19, 2023
1 parent 8e85ebf commit 7d0a7f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ impl Machine {
/// Inspect the machine's next opcode and current stack.
#[must_use]
pub fn inspect(&self) -> Option<(Opcode, &Stack)> {
let Ok(position) = self.position else { return None };
let Ok(position) = self.position else {
return None;
};
self.code.get(position).map(|v| (Opcode(*v), &self.stack))
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.70.0"
channel = "1.72.1"
profile = "minimal"
components = [ "rustfmt", "clippy" ]

0 comments on commit 7d0a7f6

Please sign in to comment.