Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zdz committed Apr 20, 2024
1 parent 1dd5c41 commit 812e340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl StatsMgr {
latest_save_ts = now;
if !resp.servers.is_empty() {
if let Ok(mut file) = File::create("stats.json") {
file.write(serde_json::to_string(&resp).unwrap().as_bytes());
file.write_all(serde_json::to_string(&resp).unwrap().as_bytes());
file.flush();
trace!("save stats.json succ!");
} else {
Expand Down

0 comments on commit 812e340

Please sign in to comment.