Skip to content

fix RocksDictConfig save not truncating #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 29, 2024
Merged

fix RocksDictConfig save not truncating #117

merged 1 commit into from
Mar 29, 2024

Conversation

Congyuwang
Copy link
Collaborator

As stated by clippy:

if you intend to overwrite an existing file entirely, call .truncate(true) if you instead know that you may want to keep some parts of the old file, call .truncate(false) alternatively, use .append(true) to append to the file instead of overwriting it for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_open_options #[warn(clippy::suspicious_open_options)] on by default

@Congyuwang Congyuwang merged commit 71e0a1b into main Mar 29, 2024
@Congyuwang Congyuwang deleted the fix-config-save branch March 29, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant