rust-watchexec-nix-compatibility.patch 933 B

123456789101112131415161718192021222324252627282930313233
  1. From 7fb77fa9e1ccfea97dd17157235d2b3db9277ee8 Mon Sep 17 00:00:00 2001
  2. From: Maxime Devos <maximedevos@telenet.be>
  3. Date: Fri, 10 Jun 2022 17:09:48 +0000
  4. Subject: [PATCH] TODO
  5. Make it build against new rust-nix(?).
  6. ---
  7. src/process.rs | 6 +-----
  8. 1 file changed, 1 insertion(+), 5 deletions(-)
  9. diff --git a/src/process.rs b/src/process.rs
  10. index d913ef8..37f248e 100644
  11. --- a/src/process.rs
  12. +++ b/src/process.rs
  13. @@ -144,11 +144,7 @@ mod imp {
  14. }
  15. fn from_nix_error(err: nix::Error) -> io::Error {
  16. - match err {
  17. - Error::Sys(errno) => io::Error::from_raw_os_error(errno as i32),
  18. - Error::InvalidPath => io::Error::new(io::ErrorKind::InvalidInput, err),
  19. - _ => io::Error::new(io::ErrorKind::Other, err),
  20. - }
  21. + return io::Error::from_raw_os_error(err as i32);
  22. }
  23. #[allow(clippy::mutex_atomic)]
  24. base-commit: 74934f304fdc6b46228b1eb82706212f34c3e16f
  25. --
  26. 2.30.2