fix args typos

This commit is contained in:
Clément DOUIN
2022-09-27 21:42:13 +02:00
parent 329af51534
commit abb9f4172b
5 changed files with 26 additions and 38 deletions
-12
View File
@@ -39,15 +39,3 @@ impl fmt::Display for OutputFmt {
write!(f, "{}", fmt)
}
}
/// Defines a struct-wrapper to provide a JSON output.
#[derive(Debug, Clone, serde::Serialize)]
pub struct OutputJson<T: serde::Serialize> {
response: T,
}
impl<T: serde::Serialize> OutputJson<T> {
pub fn new(response: T) -> Self {
Self { response }
}
}