Remove unnecessary mut

This commit is contained in:
Jeremy Soller
2017-08-12 11:38:40 -06:00
parent 2aed860782
commit cccec2f67e
+1 -1
View File
@@ -93,7 +93,7 @@ impl SchemeMut for PtyScheme {
}
fn fcntl(&mut self, id: usize, cmd: usize, arg: usize) -> Result<usize> {
let mut handle = self.handles.get_mut(&id).ok_or(Error::new(EBADF))?;
let handle = self.handles.get_mut(&id).ok_or(Error::new(EBADF))?;
handle.fcntl(cmd, arg)
}