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 warning fix #867

Merged
merged 1 commit into from
Mar 27, 2024
Merged

clippy warning fix #867

merged 1 commit into from
Mar 27, 2024

Conversation

milyin
Copy link
Contributor

@milyin milyin commented Mar 27, 2024

Fix for new clippy warning

> cargo +stable clippy --all-targets -- --deny warnings

   Compiling zenoh-macros v0.11.0-dev (/home/milyin/ZS/zenoh/commons/zenoh-macros)
error: file opened with `create`, but `truncate` behavior not defined
  --> commons/zenoh-macros/build.rs:25:10
   |
25 |         .create(true)
   |          ^^^^^^^^^^^^- help: add: `.truncate(true)`
   |
   = help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
   = help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`

@milyin milyin requested a review from Mallets March 27, 2024 11:39
@eclipse-zenoh-bot
Copy link
Contributor

@milyin If this pull request contains a bugfix or a new feature, then please consider using Closes #ISSUE-NUMBER syntax to link it to an issue.

@Mallets Mallets merged commit 2be4fa9 into protocol_changes Mar 27, 2024
14 checks passed
@Mallets Mallets deleted the clippy_truncate_warning_fix branch March 27, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants