Use format string with panic
This commit is contained in:
@@ -209,9 +209,9 @@ fn create_shm_fd() -> io::Result<RawFd> {
|
||||
Err(nix::Error::Sys(errno)) => match unistd::close(fd) {
|
||||
Ok(_) => return Err(io::Error::from(errno)),
|
||||
Err(nix::Error::Sys(errno)) => return Err(io::Error::from(errno)),
|
||||
Err(err) => panic!(err),
|
||||
Err(err) => panic!("{}", err),
|
||||
},
|
||||
Err(err) => panic!(err),
|
||||
Err(err) => panic!("{}", err),
|
||||
},
|
||||
Err(nix::Error::Sys(Errno::EEXIST)) => {
|
||||
// If a file with that handle exists then change the handle
|
||||
|
||||
Reference in New Issue
Block a user