chore: support 1.65
This commit is contained in:
parent
56039608a0
commit
87661a2611
2 changed files with 5 additions and 4 deletions
|
|
@ -58,7 +58,8 @@ impl Clipboard {
|
||||||
|
|
||||||
if let Ok(reply) = self.request_receiver.recv() {
|
if let Ok(reply) = self.request_receiver.recv() {
|
||||||
match reply {
|
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),
|
Err(err) => Err(err),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,16 @@ pub enum MimeType {
|
||||||
/// text/plain;charset=utf-8 mime type.
|
/// text/plain;charset=utf-8 mime type.
|
||||||
///
|
///
|
||||||
/// The primary mime type used by most clients
|
/// The primary mime type used by most clients
|
||||||
TextPlainUtf8 = 0,
|
TextPlainUtf8,
|
||||||
/// UTF8_STRING mime type.
|
/// UTF8_STRING mime type.
|
||||||
///
|
///
|
||||||
/// Some X11 clients are using only this mime type, so we
|
/// Some X11 clients are using only this mime type, so we
|
||||||
/// should have it as a fallback just in case.
|
/// should have it as a fallback just in case.
|
||||||
Utf8String = 1,
|
Utf8String,
|
||||||
/// text/plain mime type.
|
/// text/plain mime type.
|
||||||
///
|
///
|
||||||
/// Fallback without charset parameter.
|
/// Fallback without charset parameter.
|
||||||
TextPlain = 2,
|
TextPlain,
|
||||||
/// Other mime type
|
/// Other mime type
|
||||||
Other(Cow<'static, str>),
|
Other(Cow<'static, str>),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue