clippy!
This commit is contained in:
parent
944360f9ab
commit
20587fd663
1 changed files with 1 additions and 2 deletions
|
@ -284,9 +284,8 @@ pub fn mime_type<T: MimeDb>(db: &T, path: &Path) -> io::Result<Option<Mime>> {
|
|||
file.seek(SeekFrom::Start(0))?;
|
||||
read = file.read(&mut buffer);
|
||||
match read {
|
||||
Ok(_) => break,
|
||||
Err(ref e) if e.kind() == io::ErrorKind::Interrupted => continue,
|
||||
Err(_) => break,
|
||||
Err(_) | Ok(_) => break,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue