Skip to content

Commit 814f22f

Browse files
committed
cleanup FromUtf8Error
1 parent c2611e3 commit 814f22f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/result.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use core::fmt::{self, Display, Formatter};
77
use core::num::TryFromIntError;
88
use std::borrow::Cow;
99
use std::io;
10-
use std::string::FromUtf8Error;
1110

1211
/// Generic result type with ZipError as its error variant
1312
pub type ZipResult<T> = Result<T, ZipError>;
@@ -97,8 +96,8 @@ impl From<DateTimeRangeError> for ZipError {
9796
}
9897
}
9998

100-
impl From<FromUtf8Error> for ZipError {
101-
fn from(_: FromUtf8Error) -> Self {
99+
impl From<std::string::FromUtf8Error> for ZipError {
100+
fn from(_: std::string::FromUtf8Error) -> Self {
102101
invalid!("Invalid UTF-8")
103102
}
104103
}

0 commit comments

Comments
 (0)