mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-17 21:37:55 +08:00
fix args typos
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user