File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ fn uri_to_open_error() -> OpenError {
78
78
}
79
79
80
80
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) )
82
82
}
83
83
84
84
#[ derive( Debug ) ]
Original file line number Diff line number Diff line change @@ -72,10 +72,9 @@ use std::{env, io};
72
72
/// - On Windows the `ShellExecuteW` Windows API function is used.
73
73
/// - On Mac the system `open` command is used.
74
74
/// - 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.
79
78
///
80
79
/// [`wslu`]: https://github.com/wslutilities/wslu/
81
80
pub fn open < P > ( path : P ) -> Result < ( ) , OpenError >
You can’t perform that action at this time.
0 commit comments