From 7d0a7f617e7598bf70dcbb46a8976ab2c87b8256 Mon Sep 17 00:00:00 2001 From: Evgeny Ukhanov Date: Wed, 20 Sep 2023 01:30:52 +0200 Subject: [PATCH] Update toolchain --- core/src/lib.rs | 4 +++- rust-toolchain.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/lib.rs b/core/src/lib.rs index 86af7948b..627d4b998 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -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)) } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 62b0c05be..052b739c9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.70.0" +channel = "1.72.1" profile = "minimal" components = [ "rustfmt", "clippy" ]