i3-back: fix build on current version (#461889)

This commit is contained in:
Aleksana
2025-11-16 03:32:48 +00:00
committed by GitHub
2 changed files with 27 additions and 2 deletions

View File

@@ -16,8 +16,11 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-xGfX7ttWrcIVhy+MkR5RZr2DCAwIKwGu7zkafHcrjaE=";
};
# The tool needs a nightly compiler.
RUSTC_BOOTSTRAP = 1;
patches = [
# `let_chain` feature is not needed anymore with 1.90.
# See https://github.com/Cretezy/i3-back/pull/5
./remove-feature.patch
];
cargoHash = "sha256-o/um/Ugm3GfDz1daBKxoDD7ailUu6QJ0rj5jcKWB0lM=";

View File

@@ -0,0 +1,22 @@
diff --git a/Cargo.toml b/Cargo.toml
index 68cbda32f3..0e3f6ad1f6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "i3-back"
version = "0.3.2"
-edition = "2021"
+edition = "2024"
description = "An i3/Sway utility to switch focus to your last focused window. Allows for behavior similar to Alt+Tab on other desktop environments."
repository = "https://github.com/Cretezy/i3-back"
homepage = "https://github.com/Cretezy/i3-back"
diff --git a/src/main.rs b/src/main.rs
index e11a2a7550..91a34cab07 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,3 @@
-#![feature(let_chains)]
use std::process;
use std::thread;
use std::time::Duration;