Unverified Commit 75dd0f2e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents 2e8431ec bb779e49
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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=";

+22 −0
Original line number Diff line number Diff line
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;