chore: support 1.65

This commit is contained in:
Ashley Wulber 2024-02-27 18:01:11 -05:00
parent 56039608a0
commit 87661a2611
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
2 changed files with 5 additions and 4 deletions

View file

@ -58,7 +58,8 @@ impl Clipboard {
if let Ok(reply) = self.request_receiver.recv() {
match reply {
Ok((data, mime)) => T::try_from((data, mime)).map_err(std::io::Error::other),
Ok((data, mime)) => T::try_from((data, mime))
.map_err(|err| std::io::Error::new(std::io::ErrorKind::Other, err)),
Err(err) => Err(err),
}
} else {

View file

@ -19,16 +19,16 @@ pub enum MimeType {
/// text/plain;charset=utf-8 mime type.
///
/// The primary mime type used by most clients
TextPlainUtf8 = 0,
TextPlainUtf8,
/// UTF8_STRING mime type.
///
/// Some X11 clients are using only this mime type, so we
/// should have it as a fallback just in case.
Utf8String = 1,
Utf8String,
/// text/plain mime type.
///
/// Fallback without charset parameter.
TextPlain = 2,
TextPlain,
/// Other mime type
Other(Cow<'static, str>),
}