Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
src
/
tools
/
clippy
/
tests
/
ui
/
open_options_fixable.fixed
blob: 7f601eec2cf06e90e8864215a88a200d4cdf152e [
file
] [
log
] [
blame
]
use
std
::
fs
::
OpenOptions
;
#[allow(unused_must_use)]
#[warn(clippy::suspicious_open_options)]
fn main
()
{
OpenOptions
::
new
().
create
(
true
).
truncate
(
true
).
open
(
"foo.txt"
);
//~^ suspicious_open_options
}