Skip to content
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

clippy #2314

Merged
merged 1 commit into from
Feb 13, 2024
Merged

clippy #2314

merged 1 commit into from
Feb 13, 2024

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Feb 8, 2024

No description provided.

Comment on lines 481 to +482
.create(true) //< if the file does not exist yet, create it.
.truncate(false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this make more sense?

Suggested change
.create(true) //< if the file does not exist yet, create it.
.truncate(false)
.create_new(true) //< if the file already exists, fail

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would disable blocking locking. I'm also not sure if we delete the lock

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I totally missed the context. I thought it was for regular writes!

@PSeitz PSeitz merged commit 79b041f into main Feb 13, 2024
4 checks passed
@PSeitz PSeitz deleted the clippy branch February 13, 2024 04:56
PSeitz added a commit that referenced this pull request Apr 10, 2024
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.

2 participants