]> git.lizzy.rs Git - rust.git/commitdiff
ErrorKind: Fix a spurious space
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 17:46:50 +0000 (18:46 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 17:46:50 +0000 (18:46 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
library/std/src/sys/unix/mod.rs

index 387067a505b091265d62d605f26ff6e780f54aec..ee8e8e69484d5003e463f4514f98d971731b8a12 100644 (file)
@@ -150,7 +150,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
         libc::EPIPE => BrokenPipe,
         libc::ETIMEDOUT => TimedOut,
 
-        libc::EACCES | libc::EPERM  => PermissionDenied,
+        libc::EACCES | libc::EPERM => PermissionDenied,
 
         // These two constants can have the same value on some systems,
         // but different values on others, so we can't use a match