Skip to content

feat(api): Add append option to writeFile apis #762

feat(api): Add append option to writeFile apis

feat(api): Add append option to writeFile apis #762

GitHub Actions / all failed Aug 16, 2023 in 0s

all

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.71.1 (eb26296b5 2023-08-03)
  • cargo 1.71.1 (7f1d04c00 2023-07-29)
  • clippy 0.1.71 (eb26296 2023-08-03)

Annotations

Check failure on line 177 in core/tauri/src/endpoints/file_system.rs

See this annotation in the file changed.

@github-actions github-actions / all

called `map(..).flatten()` on `Option`

error: called `map(..).flatten()` on `Option`
   --> core/tauri/src/endpoints/file_system.rs:176:8
    |
176 |         .map(|opt| opt.append)
    |  ________^
177 | |       .flatten()
    | |________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|opt| opt.append)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
    = note: `-D clippy::map-flatten` implied by `-D warnings`