rustfmt
This commit is contained in:
parent
3c67388fae
commit
4f8d6ec3d0
16 changed files with 61 additions and 60 deletions
|
@ -1,7 +1,5 @@
|
|||
use std::fmt::Display;
|
||||
|
||||
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum UbisyncError {
|
||||
InvalidNodeReply(String),
|
||||
|
@ -12,9 +10,11 @@ impl Display for UbisyncError {
|
|||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
match self {
|
||||
Self::InvalidNodeReply(msg) => write!(f, "Invalid reply from ubisync node: {}", msg),
|
||||
Self::AppRegistrationFailed => write!(f, "Registrating this app at the ubisync node failed."),
|
||||
Self::AppRegistrationFailed => {
|
||||
write!(f, "Registrating this app at the ubisync node failed.")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for UbisyncError {}
|
||||
impl std::error::Error for UbisyncError {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue