Skip to content

Commit edf5d9d

Browse files
committed
Fix clippy lints
1 parent ef96748 commit edf5d9d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

opener/src/freedesktop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn uri_to_open_error() -> OpenError {
7878
}
7979

8080
fn dbus_to_open_error(error: dbus::Error) -> OpenError {
81-
OpenError::Io(io::Error::new(io::ErrorKind::Other, error))
81+
OpenError::Io(io::Error::other(error))
8282
}
8383

8484
#[derive(Debug)]

opener/src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ use std::{env, io};
7272
/// - On Windows the `ShellExecuteW` Windows API function is used.
7373
/// - On Mac the system `open` command is used.
7474
/// - On Windows Subsystem for Linux (WSL), the system `wslview` from [`wslu`] is used if available,
75-
/// otherwise the system `xdg-open` is used, if available.
76-
/// - On non-WSL Linux and other platforms,
77-
/// the system `xdg-open` script is used if available, otherwise an `xdg-open` script embedded in
78-
/// this library is used.
75+
/// otherwise the system `xdg-open` is used, if available.
76+
/// - On non-WSL Linux and other platforms, the system `xdg-open` script is used if available,
77+
/// otherwise an `xdg-open` script embedded in this library is used.
7978
///
8079
/// [`wslu`]: https://github.com/wslutilities/wslu/
8180
pub fn open<P>(path: P) -> Result<(), OpenError>

0 commit comments

Comments
 (0)