style: auto-format from pre-push hooks
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Oleks
2026-03-15 20:19:54 +02:00
parent cb45365285
commit ce394ed7b8
+3 -5
View File
@@ -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
'';
});
})
];