Skip to content

Commit 812e340

Browse files
committed
clippy
1 parent 1dd5c41 commit 812e340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl StatsMgr {
313313
latest_save_ts = now;
314314
if !resp.servers.is_empty() {
315315
if let Ok(mut file) = File::create("stats.json") {
316-
file.write(serde_json::to_string(&resp).unwrap().as_bytes());
316+
file.write_all(serde_json::to_string(&resp).unwrap().as_bytes());
317317
file.flush();
318318
trace!("save stats.json succ!");
319319
} else {

0 commit comments

Comments
 (0)