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:
stevenhorsman 2025-01-28 15:30:16 +00:00
parent a640bb86ec
commit 6008fd56a1

View File

@ -537,6 +537,7 @@ mod tests {
OpenOptions::new()
.create(true)
.truncate(true)
.write(true)
.open(test_file_filename)
.expect("failed to create test file");