diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-11-02 23:01:08 +0100 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-11-02 23:01:08 +0100 |
| commit | 36b5d69929d15212f5845f42d0239ba50e46a69c (patch) | |
| tree | 6d7500c995081b4c51c5bc15aebc839a861e0f04 /mumlib/src/error.rs | |
| parent | 9d60f06ae05c5de08a026c7f9067c1a339bc24be (diff) | |
| download | mum-36b5d69929d15212f5845f42d0239ba50e46a69c.tar.gz | |
cargo fmt
Diffstat (limited to 'mumlib/src/error.rs')
| -rw-r--r-- | mumlib/src/error.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mumlib/src/error.rs b/mumlib/src/error.rs index eaf517c..1e79b9c 100644 --- a/mumlib/src/error.rs +++ b/mumlib/src/error.rs @@ -19,7 +19,9 @@ impl Display for Error { Error::DisconnectedError => write!(f, "Not connected to a server"), Error::AlreadyConnectedError => write!(f, "Already connected to a server"), Error::ChannelIdentifierError(id, kind) => write!(f, "{}: {}", kind, id), - Error::InvalidServerAddrError(addr, port) => write!(f, "Invalid server address: {}: {}", addr, port), + Error::InvalidServerAddrError(addr, port) => { + write!(f, "Invalid server address: {}: {}", addr, port) + } Error::InvalidUsernameError(username) => write!(f, "Invalid username: {}", username), } } |
