From dd9e04f636ce8664f6c9b3d62bd7b78028d76e6d Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sat, 18 Apr 2026 11:23:01 -0400 Subject: [PATCH] Update to rust 1.95 --- build.Dockerfile | 2 +- src/app.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.Dockerfile b/build.Dockerfile index b382ae2..6b5ded5 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -18,7 +18,7 @@ RUN apt-get update && \ ln -s $(which ld64.lld-21) /usr/bin/ld64.lld && \ SDK_VERSION=14.5 UNATTENDED=1 ENABLE_COMPILER_RT_INSTALL=1 TARGET_DIR=/osxcross ./build.sh -FROM rust:1.94-bookworm +FROM rust:1.95-bookworm ADD --chmod=644 "https://apt.llvm.org/llvm-snapshot.gpg.key" /etc/apt/trusted.gpg.d/apt.llvm.org.asc COPY llvm.sources /etc/apt/sources.list.d/llvm.sources COPY install-llvm.sh . diff --git a/src/app.rs b/src/app.rs index f58f20b..06da615 100644 --- a/src/app.rs +++ b/src/app.rs @@ -400,10 +400,10 @@ impl ApplicationHandler for Application { } if !response.consumed { match event { - WindowEvent::KeyboardInput { event, .. } => { - if !self.app.handle_key_event(viewport_id, &event) { - self.controllers.handle_key_event(&event); - } + WindowEvent::KeyboardInput { event, .. } + if !self.app.handle_key_event(viewport_id, &event) => + { + self.controllers.handle_key_event(&event); } WindowEvent::Focused(new_focused) => { self.focused = new_focused.then_some(viewport_id);