fix generic io match

This commit is contained in:
Pere Diaz Bou
2024-09-29 10:24:56 +02:00
parent 5207e49399
commit da7717edfb

View File

@@ -57,7 +57,7 @@ impl File for GenericFile {
{
let r = match &(*c) {
Completion::Read(r) => r,
Completion::Write(_) => unreachable!(),
_ => unreachable!(),
};
let mut buf = r.buf_mut();
let buf = buf.as_mut_slice();