mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 23:17:42 +00:00
agent: Fix clippy error
``` error: file opened with `create`, but `truncate` behavior not defined ``` `truncate(true)` ensures the file is entirely overwritten with new data which I believe is the behaviour we want Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
a640bb86ec
commit
6008fd56a1
@ -537,6 +537,7 @@ mod tests {
|
|||||||
|
|
||||||
OpenOptions::new()
|
OpenOptions::new()
|
||||||
.create(true)
|
.create(true)
|
||||||
|
.truncate(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(test_file_filename)
|
.open(test_file_filename)
|
||||||
.expect("failed to create test file");
|
.expect("failed to create test file");
|
||||||
|
Loading…
Reference in New Issue
Block a user