You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"file opened with `create`, but `truncate` behavior not defined",
152
-
Some(span),
153
-
"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)`"
154
-
);
147
+
{
148
+
span_lint_and_then(
149
+
cx,
150
+
SUSPICIOUS_OPEN_OPTIONS,
151
+
*create_span,
152
+
"file opened with `create`, but `truncate` behavior not defined",
.help("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)`");
help: 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)`
help: 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)`
= help: 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)`
8
+
= note: `-D clippy::suspicious-open-options` implied by `-D warnings`
9
+
= help: to override `-D warnings` add `#[allow(clippy::suspicious_open_options)]`
0 commit comments