1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

clippy warnings; fmt

This commit is contained in:
Nikolay Kim
2018-04-28 22:55:47 -07:00
parent a38c3985f6
commit de49796fd1
67 changed files with 988 additions and 1866 deletions

View File

@@ -194,11 +194,11 @@ impl From<CloseCode> for CloseReason {
}
}
impl <T: Into<String>> From<(CloseCode, T)> for CloseReason {
impl<T: Into<String>> From<(CloseCode, T)> for CloseReason {
fn from(info: (CloseCode, T)) -> Self {
CloseReason{
CloseReason {
code: info.0,
description: Some(info.1.into())
description: Some(info.1.into()),
}
}
}