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:
@@ -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()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user