Fixed some warnings (#11)

Reviewed-on: phoenix/icarus-models#11
Co-authored-by: KD <kundeng94@gmail.com>
Co-committed-by: KD <kundeng94@gmail.com>
This commit is contained in:
KD authored and phoenix committed 2025-03-22 18:24:08 +00:00
1 parent d0e0d8fa2d
commit 351147cb64
7 files changed
+57 -66

No files matched your search

+2 -2
View File
@@ -52,9 +52,9 @@ impl Default for User {
impl User {
pub fn to_json(&self, output_pretty: bool) -> Result<String, serde_json::Error> {
if output_pretty {
return serde_json::to_string_pretty(&self);
serde_json::to_string_pretty(&self)
} else {
return serde_json::to_string(&self);
serde_json::to_string(&self)
}
}
}