Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit d8fa88d

Browse files
committed
formatting
1 parent 3156cbc commit d8fa88d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

parity/url.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@ pub enum Error {
2626
}
2727

2828
impl From<std::io::Error> for Error {
29-
fn from(err: std::io::Error) -> Self {
30-
Error::ProcessError(err)
31-
}
29+
fn from(err: std::io::Error) -> Self {
30+
Error::ProcessError(err)
31+
}
3232
}
3333

3434
impl From<std::ffi::NulError> for Error {
35-
fn from(err: std::ffi::NulError) -> Self {
36-
Error::FfiNull(err)
37-
}
35+
fn from(err: std::ffi::NulError) -> Self {
36+
Error::FfiNull(err)
37+
}
3838
}
3939

4040
impl std::fmt::Display for Error {
41-
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
42-
match *self {
43-
Error::ProcessError(ref e) => write!(f, "{}", e),
44-
Error::FfiNull(ref e) => write!(f, "{}", e),
41+
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
42+
match *self {
43+
Error::ProcessError(ref e) => write!(f, "{}", e),
44+
Error::FfiNull(ref e) => write!(f, "{}", e),
4545
Error::WindowsShellExecute => write!(f, "WindowsShellExecute failed"),
46-
}
47-
}
46+
}
47+
}
4848
}
4949

5050
#[cfg(windows)]
@@ -64,7 +64,7 @@ pub fn open(url: &str) -> Result<(), Error> {
6464
ptr::null(),
6565
ptr::null(),
6666
Normal) as INT
67-
};
67+
};
6868
// https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153(v=vs.85).aspx
6969
// `ShellExecute` returns a value greater than 32 on success
7070
if h_instance > WINDOWS_SHELL_EXECUTE_SUCCESS { Ok(()) } else { Err(Error::WindowsShellExecute) }

0 commit comments

Comments
 (0)