From ce394ed7b8a2755bdc40217f8fb53ad948da0bf8 Mon Sep 17 00:00:00 2001 From: Oleks Date: Sun, 15 Mar 2026 20:19:54 +0200 Subject: [PATCH] style: auto-format from pre-push hooks --- flake.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 48da04a..aa3aec0 100644 --- a/flake.nix +++ b/flake.nix @@ -99,11 +99,9 @@ # Patch symlink_file in lib.rs to remove existing destination first. (final: prev: { rustc = prev.rustc.overrideAttrs (old: { - postPatch = - (old.postPatch or "") - + '' - sed -i 's|if !self.config.dry_run() { symlink_file(src.as_ref(), link.as_ref())|if !self.config.dry_run() { let _ = std::fs::remove_file(link.as_ref()); symlink_file(src.as_ref(), link.as_ref())|' src/bootstrap/src/lib.rs - ''; + postPatch = (old.postPatch or "") + '' + sed -i 's|if !self.config.dry_run() { symlink_file(src.as_ref(), link.as_ref())|if !self.config.dry_run() { let _ = std::fs::remove_file(link.as_ref()); symlink_file(src.as_ref(), link.as_ref())|' src/bootstrap/src/lib.rs + ''; }); }) ];