mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-17 09:33:38 -05:00
Fix small bug in API
This commit is contained in:
@@ -270,7 +270,7 @@ fn log(method: &str, url: &str, status: u16, time: u32) {
|
||||
}
|
||||
};
|
||||
println!(
|
||||
"\x1b[94;1mHTTP \x1b[0m\x1b[32m{}\x1b[0m {} {}{}\x1b[0m in {}ms",
|
||||
"\x1b[94;1m HTTP \x1b[0m\x1b[32m{}\x1b[0m {} {}{}\x1b[0m in {}ms",
|
||||
method, url, color, status, time
|
||||
)
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ impl Serialize for VersionUpdateInfo {
|
||||
let mut state = serializer.serialize_struct("VersionUpdateInfo", 3)?;
|
||||
let _ = state.serialize_field("type", "version");
|
||||
let _ = state.serialize_field("version_update_type", &self.version_update_type);
|
||||
let _ = state.serialize_field("new_version", &self.new_tag);
|
||||
let _ = state.serialize_field("new_tag", &self.new_tag);
|
||||
state.end()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user