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
.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)`. Alternatively, use `.append` to append to the file instead of overwriting it.");
192
+
diag.span_suggestion(
193
+
create_span.shrink_to_hi(),
194
+
"add",
195
+
".truncate(true)".to_string(),
196
+
rustc_errors::Applicability::MaybeIncorrect,
197
+
)
198
+
.help("if you intend to overwrite an existing file entirely, call `.truncate(true)`")
199
+
.help(
200
+
"if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`",
201
+
)
202
+
.help("alternatively, use `.append(true)` to append to the file instead of overwriting it");
= 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)`. Alternatively, use `.append` to append to the file instead of overwriting it.
7
+
= help: if you intend to overwrite an existing file entirely, call `.truncate(true)`
8
+
= help: if you instead know that you may want to keep some parts of the old file, call `.truncate(false)`
9
+
= help: alternatively, use `.append(true)` to append to the file instead of overwriting it
8
10
= note: `-D clippy::suspicious-open-options` implied by `-D warnings`
9
11
= help: to override `-D warnings` add `#[allow(clippy::suspicious_open_options)]`
0 commit comments