mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-24 16:28:11 -07:00
remove format! calls entirely
This commit is contained in:
committed by
Will Greenberg
parent
bd5dfb1a75
commit
3aa3ce89c8
+3
-2
@@ -170,9 +170,10 @@ impl DiagTask {
|
||||
lat,
|
||||
lon,
|
||||
};
|
||||
let json = serde_json::to_string(&record)?;
|
||||
let mut json = serde_json::to_vec(&record)?;
|
||||
json.push(b'\n');
|
||||
gps_file
|
||||
.write_all(format!("{json}\n").as_bytes())
|
||||
.write_all(&json)
|
||||
.await
|
||||
.map_err(RecordingStoreError::WriteFileError)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user