[INFO] crate vtkio 0.1.6 is already in cache [INFO] extracting crate vtkio 0.1.6 into work/ex/clippy-test-run/sources/stable/reg/vtkio/0.1.6 [INFO] extracting crate vtkio 0.1.6 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/vtkio/0.1.6 [INFO] validating manifest of vtkio-0.1.6 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of vtkio-0.1.6 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing vtkio-0.1.6 [INFO] finished frobbing vtkio-0.1.6 [INFO] frobbed toml for vtkio-0.1.6 written to work/ex/clippy-test-run/sources/stable/reg/vtkio/0.1.6/Cargo.toml [INFO] started frobbing vtkio-0.1.6 [INFO] finished frobbing vtkio-0.1.6 [INFO] frobbed toml for vtkio-0.1.6 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/vtkio/0.1.6/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting vtkio-0.1.6 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/vtkio/0.1.6:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] d734df3cfc6f9afcff1e60c7f1881f71a706a64841c4d37d4fcd0ae4cd09529e [INFO] running `"docker" "start" "-a" "d734df3cfc6f9afcff1e60c7f1881f71a706a64841c4d37d4fcd0ae4cd09529e"` [INFO] [stderr] Checking reinterpret v0.1.2 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Compiling enum-primitive-derive v0.1.2 [INFO] [stderr] Checking nom v3.2.1 [INFO] [stderr] Checking data-buffer v0.4.3 [INFO] [stderr] Checking vtkio v0.1.6 (/opt/crater/workdir) [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::write_with_newline)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | / write!( [INFO] [stderr] 48 | | self, [INFO] [stderr] 49 | | "SCALARS {} {} {}\n", [INFO] [stderr] 50 | | name, [INFO] [stderr] 51 | | DataType::from(data.type_id()), [INFO] [stderr] 52 | | num_comp [INFO] [stderr] 53 | | ).expect("Error writing a Scalars attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | / write!( [INFO] [stderr] 55 | | self, [INFO] [stderr] 56 | | "LOOKUP_TABLE {}\n", [INFO] [stderr] 57 | | lookup_table.unwrap_or(String::from("default")) [INFO] [stderr] 58 | | ).expect("Error writing a lookup table name for Scalars data."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:62:25 [INFO] [stderr] | [INFO] [stderr] 62 | write!(self, "COLOR_SCALARS {} {}\n", name, num_comp) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:67:25 [INFO] [stderr] | [INFO] [stderr] 67 | write!(self, "LOOKUP_TABLE {} {}\n", name, data.len() / 4) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:72:25 [INFO] [stderr] | [INFO] [stderr] 72 | / write!( [INFO] [stderr] 73 | | self, [INFO] [stderr] 74 | | "VECTORS {} {}\n", [INFO] [stderr] 75 | | name, [INFO] [stderr] 76 | | DataType::from(data.type_id()) [INFO] [stderr] 77 | | ).expect("Error writing a Vectors attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:81:25 [INFO] [stderr] | [INFO] [stderr] 81 | / write!( [INFO] [stderr] 82 | | self, [INFO] [stderr] 83 | | "NORMALS {} {}\n", [INFO] [stderr] 84 | | name, [INFO] [stderr] 85 | | DataType::from(data.type_id()) [INFO] [stderr] 86 | | ).expect("Error writing a Normals attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:90:25 [INFO] [stderr] | [INFO] [stderr] 90 | / write!( [INFO] [stderr] 91 | | self, [INFO] [stderr] 92 | | "TEXTURE_COORDINATES {} {} {}\n", [INFO] [stderr] 93 | | name, [INFO] [stderr] 94 | | dim, [INFO] [stderr] 95 | | DataType::from(data.type_id()) [INFO] [stderr] 96 | | ).expect("Error writing a TextureCoordinates attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:103:25 [INFO] [stderr] | [INFO] [stderr] 103 | / write!( [INFO] [stderr] 104 | | self, [INFO] [stderr] 105 | | "TENSORS {} {}\n", [INFO] [stderr] 106 | | name, [INFO] [stderr] 107 | | DataType::from(data.type_id()) [INFO] [stderr] 108 | | ).expect("Error writing a Tensors attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:112:25 [INFO] [stderr] | [INFO] [stderr] 112 | write!(self, "FIELD {} {}\n", name, data_array.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:115:29 [INFO] [stderr] | [INFO] [stderr] 115 | / write!( [INFO] [stderr] 116 | | self, [INFO] [stderr] 117 | | "{} {} {} {}\n", [INFO] [stderr] 118 | | field.name, [INFO] [stderr] ... | [INFO] [stderr] 121 | | DataType::from(field.data.type_id()) [INFO] [stderr] 122 | | ).expect("Error writing Field attribute array header."); [INFO] [stderr] | |_____________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:133:13 [INFO] [stderr] | [INFO] [stderr] 133 | write!(self, "# vtk DataFile Version {}\n", vtk.version) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:135:13 [INFO] [stderr] | [INFO] [stderr] 135 | write!(self, "{}\n", vtk.title).expect("Error writing VTK Title."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:139:21 [INFO] [stderr] | [INFO] [stderr] 139 | write!(self, "FIELD {} {}\n", name, data_array.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:142:25 [INFO] [stderr] | [INFO] [stderr] 142 | / write!( [INFO] [stderr] 143 | | self, [INFO] [stderr] 144 | | "{} {} {} {}\n", [INFO] [stderr] 145 | | field.name, [INFO] [stderr] ... | [INFO] [stderr] 148 | | DataType::from(field.data.type_id()) [INFO] [stderr] 149 | | ).expect("Error writing Field array data header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:158:21 [INFO] [stderr] | [INFO] [stderr] 158 | write!(self, "DATASET POLYDATA\n").expect("Error writing PolyData tags."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:160:21 [INFO] [stderr] | [INFO] [stderr] 160 | / write!( [INFO] [stderr] 161 | | self, [INFO] [stderr] 162 | | "POINTS {} {}\n", [INFO] [stderr] 163 | | points.len() / 3, [INFO] [stderr] 164 | | DataType::from(points.type_id()) [INFO] [stderr] 165 | | ).expect("Error writing PolyData points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:169:21 [INFO] [stderr] | [INFO] [stderr] 169 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:187:25 [INFO] [stderr] | [INFO] [stderr] 187 | write!(self, " {} {}\n", cells.num_cells, cells.vertices.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:207:21 [INFO] [stderr] | [INFO] [stderr] 207 | write!(self, "DATASET UNSTRUCTURED_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:210:21 [INFO] [stderr] | [INFO] [stderr] 210 | / write!( [INFO] [stderr] 211 | | self, [INFO] [stderr] 212 | | "POINTS {} {}\n", [INFO] [stderr] 213 | | points.len() / 3, [INFO] [stderr] 214 | | DataType::from(points.type_id()) [INFO] [stderr] 215 | | ).expect("Error writing UnstructuredGrid points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:246:21 [INFO] [stderr] | [INFO] [stderr] 246 | write!(self, "DATASET STRUCTURED_POINTS\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:252:21 [INFO] [stderr] | [INFO] [stderr] 252 | write!(self, "ORIGIN {} {} {}\n", origin[0], origin[1], origin[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:260:21 [INFO] [stderr] | [INFO] [stderr] 260 | write!(self, " {} {} {}\n", spacing[0], spacing[1], spacing[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:268:21 [INFO] [stderr] | [INFO] [stderr] 268 | write!(self, "DATASET STRUCTURED_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:271:21 [INFO] [stderr] | [INFO] [stderr] 271 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:274:21 [INFO] [stderr] | [INFO] [stderr] 274 | / write!( [INFO] [stderr] 275 | | self, [INFO] [stderr] 276 | | "POINTS {} {}\n", [INFO] [stderr] 277 | | points.len() / 3, [INFO] [stderr] 278 | | DataType::from(points.type_id()) [INFO] [stderr] 279 | | ).expect("Error writing StructuredGrid points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:294:21 [INFO] [stderr] | [INFO] [stderr] 294 | write!(self, "DATASET RECTILINEAR_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:297:21 [INFO] [stderr] | [INFO] [stderr] 297 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:300:21 [INFO] [stderr] | [INFO] [stderr] 300 | / write!( [INFO] [stderr] 301 | | self, [INFO] [stderr] 302 | | "X_COORDINATES {} {}\n", [INFO] [stderr] 303 | | x_coords.len(), [INFO] [stderr] 304 | | DataType::from(x_coords.type_id()) [INFO] [stderr] 305 | | ).expect("Error writing RectilinearGrid x_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:308:21 [INFO] [stderr] | [INFO] [stderr] 308 | / write!( [INFO] [stderr] 309 | | self, [INFO] [stderr] 310 | | "Y_COORDINATES {} {}\n", [INFO] [stderr] 311 | | y_coords.len(), [INFO] [stderr] 312 | | DataType::from(y_coords.type_id()) [INFO] [stderr] 313 | | ).expect("Error writing RectilinearGrid y_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:316:21 [INFO] [stderr] | [INFO] [stderr] 316 | / write!( [INFO] [stderr] 317 | | self, [INFO] [stderr] 318 | | "Z_COORDINATES {} {}\n", [INFO] [stderr] 319 | | z_coords.len(), [INFO] [stderr] 320 | | DataType::from(z_coords.type_id()) [INFO] [stderr] 321 | | ).expect("Error writing RectilinearGrid z_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:331:13 [INFO] [stderr] | [INFO] [stderr] 331 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:349:13 [INFO] [stderr] | [INFO] [stderr] 349 | write!(self, "\n").expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:398:13 [INFO] [stderr] | [INFO] [stderr] 398 | write!(self, "\n").expect("Error writing a new line after binary data."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:414:17 [INFO] [stderr] | [INFO] [stderr] 414 | write!(self, "{}\n", t.to_u8().unwrap()).expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:416:13 [INFO] [stderr] | [INFO] [stderr] 416 | write!(self, "\n").expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:426:13 [INFO] [stderr] | [INFO] [stderr] 426 | write!(self, "\n").expect(err); // finish with a new line [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:430:13 [INFO] [stderr] | [INFO] [stderr] 430 | write!(self, "{}\n", data).expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::write_with_newline)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:47:25 [INFO] [stderr] | [INFO] [stderr] 47 | / write!( [INFO] [stderr] 48 | | self, [INFO] [stderr] 49 | | "SCALARS {} {} {}\n", [INFO] [stderr] 50 | | name, [INFO] [stderr] 51 | | DataType::from(data.type_id()), [INFO] [stderr] 52 | | num_comp [INFO] [stderr] 53 | | ).expect("Error writing a Scalars attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:54:25 [INFO] [stderr] | [INFO] [stderr] 54 | / write!( [INFO] [stderr] 55 | | self, [INFO] [stderr] 56 | | "LOOKUP_TABLE {}\n", [INFO] [stderr] 57 | | lookup_table.unwrap_or(String::from("default")) [INFO] [stderr] 58 | | ).expect("Error writing a lookup table name for Scalars data."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:62:25 [INFO] [stderr] | [INFO] [stderr] 62 | write!(self, "COLOR_SCALARS {} {}\n", name, num_comp) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:67:25 [INFO] [stderr] | [INFO] [stderr] 67 | write!(self, "LOOKUP_TABLE {} {}\n", name, data.len() / 4) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:72:25 [INFO] [stderr] | [INFO] [stderr] 72 | / write!( [INFO] [stderr] 73 | | self, [INFO] [stderr] 74 | | "VECTORS {} {}\n", [INFO] [stderr] 75 | | name, [INFO] [stderr] 76 | | DataType::from(data.type_id()) [INFO] [stderr] 77 | | ).expect("Error writing a Vectors attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:81:25 [INFO] [stderr] | [INFO] [stderr] 81 | / write!( [INFO] [stderr] 82 | | self, [INFO] [stderr] 83 | | "NORMALS {} {}\n", [INFO] [stderr] 84 | | name, [INFO] [stderr] 85 | | DataType::from(data.type_id()) [INFO] [stderr] 86 | | ).expect("Error writing a Normals attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:90:25 [INFO] [stderr] | [INFO] [stderr] 90 | / write!( [INFO] [stderr] 91 | | self, [INFO] [stderr] 92 | | "TEXTURE_COORDINATES {} {} {}\n", [INFO] [stderr] 93 | | name, [INFO] [stderr] 94 | | dim, [INFO] [stderr] 95 | | DataType::from(data.type_id()) [INFO] [stderr] 96 | | ).expect("Error writing a TextureCoordinates attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:103:25 [INFO] [stderr] | [INFO] [stderr] 103 | / write!( [INFO] [stderr] 104 | | self, [INFO] [stderr] 105 | | "TENSORS {} {}\n", [INFO] [stderr] 106 | | name, [INFO] [stderr] 107 | | DataType::from(data.type_id()) [INFO] [stderr] 108 | | ).expect("Error writing a Tensors attribute header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:112:25 [INFO] [stderr] | [INFO] [stderr] 112 | write!(self, "FIELD {} {}\n", name, data_array.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:115:29 [INFO] [stderr] | [INFO] [stderr] 115 | / write!( [INFO] [stderr] 116 | | self, [INFO] [stderr] 117 | | "{} {} {} {}\n", [INFO] [stderr] 118 | | field.name, [INFO] [stderr] ... | [INFO] [stderr] 121 | | DataType::from(field.data.type_id()) [INFO] [stderr] 122 | | ).expect("Error writing Field attribute array header."); [INFO] [stderr] | |_____________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:133:13 [INFO] [stderr] | [INFO] [stderr] 133 | write!(self, "# vtk DataFile Version {}\n", vtk.version) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:135:13 [INFO] [stderr] | [INFO] [stderr] 135 | write!(self, "{}\n", vtk.title).expect("Error writing VTK Title."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:139:21 [INFO] [stderr] | [INFO] [stderr] 139 | write!(self, "FIELD {} {}\n", name, data_array.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:142:25 [INFO] [stderr] | [INFO] [stderr] 142 | / write!( [INFO] [stderr] 143 | | self, [INFO] [stderr] 144 | | "{} {} {} {}\n", [INFO] [stderr] 145 | | field.name, [INFO] [stderr] ... | [INFO] [stderr] 148 | | DataType::from(field.data.type_id()) [INFO] [stderr] 149 | | ).expect("Error writing Field array data header."); [INFO] [stderr] | |_________________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:158:21 [INFO] [stderr] | [INFO] [stderr] 158 | write!(self, "DATASET POLYDATA\n").expect("Error writing PolyData tags."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:160:21 [INFO] [stderr] | [INFO] [stderr] 160 | / write!( [INFO] [stderr] 161 | | self, [INFO] [stderr] 162 | | "POINTS {} {}\n", [INFO] [stderr] 163 | | points.len() / 3, [INFO] [stderr] 164 | | DataType::from(points.type_id()) [INFO] [stderr] 165 | | ).expect("Error writing PolyData points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:169:21 [INFO] [stderr] | [INFO] [stderr] 169 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:187:25 [INFO] [stderr] | [INFO] [stderr] 187 | write!(self, " {} {}\n", cells.num_cells, cells.vertices.len()) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:207:21 [INFO] [stderr] | [INFO] [stderr] 207 | write!(self, "DATASET UNSTRUCTURED_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:210:21 [INFO] [stderr] | [INFO] [stderr] 210 | / write!( [INFO] [stderr] 211 | | self, [INFO] [stderr] 212 | | "POINTS {} {}\n", [INFO] [stderr] 213 | | points.len() / 3, [INFO] [stderr] 214 | | DataType::from(points.type_id()) [INFO] [stderr] 215 | | ).expect("Error writing UnstructuredGrid points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:246:21 [INFO] [stderr] | [INFO] [stderr] 246 | write!(self, "DATASET STRUCTURED_POINTS\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:249:21 [INFO] [stderr] | [INFO] [stderr] 249 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:252:21 [INFO] [stderr] | [INFO] [stderr] 252 | write!(self, "ORIGIN {} {} {}\n", origin[0], origin[1], origin[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:260:21 [INFO] [stderr] | [INFO] [stderr] 260 | write!(self, " {} {} {}\n", spacing[0], spacing[1], spacing[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:268:21 [INFO] [stderr] | [INFO] [stderr] 268 | write!(self, "DATASET STRUCTURED_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:271:21 [INFO] [stderr] | [INFO] [stderr] 271 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:274:21 [INFO] [stderr] | [INFO] [stderr] 274 | / write!( [INFO] [stderr] 275 | | self, [INFO] [stderr] 276 | | "POINTS {} {}\n", [INFO] [stderr] 277 | | points.len() / 3, [INFO] [stderr] 278 | | DataType::from(points.type_id()) [INFO] [stderr] 279 | | ).expect("Error writing StructuredGrid points."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:294:21 [INFO] [stderr] | [INFO] [stderr] 294 | write!(self, "DATASET RECTILINEAR_GRID\n") [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:297:21 [INFO] [stderr] | [INFO] [stderr] 297 | write!(self, "DIMENSIONS {} {} {}\n", dims[0], dims[1], dims[2]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:300:21 [INFO] [stderr] | [INFO] [stderr] 300 | / write!( [INFO] [stderr] 301 | | self, [INFO] [stderr] 302 | | "X_COORDINATES {} {}\n", [INFO] [stderr] 303 | | x_coords.len(), [INFO] [stderr] 304 | | DataType::from(x_coords.type_id()) [INFO] [stderr] 305 | | ).expect("Error writing RectilinearGrid x_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:308:21 [INFO] [stderr] | [INFO] [stderr] 308 | / write!( [INFO] [stderr] 309 | | self, [INFO] [stderr] 310 | | "Y_COORDINATES {} {}\n", [INFO] [stderr] 311 | | y_coords.len(), [INFO] [stderr] 312 | | DataType::from(y_coords.type_id()) [INFO] [stderr] 313 | | ).expect("Error writing RectilinearGrid y_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:316:21 [INFO] [stderr] | [INFO] [stderr] 316 | / write!( [INFO] [stderr] 317 | | self, [INFO] [stderr] 318 | | "Z_COORDINATES {} {}\n", [INFO] [stderr] 319 | | z_coords.len(), [INFO] [stderr] 320 | | DataType::from(z_coords.type_id()) [INFO] [stderr] 321 | | ).expect("Error writing RectilinearGrid z_coordinates."); [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:331:13 [INFO] [stderr] | [INFO] [stderr] 331 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:349:13 [INFO] [stderr] | [INFO] [stderr] 349 | write!(self, "\n").expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:398:13 [INFO] [stderr] | [INFO] [stderr] 398 | write!(self, "\n").expect("Error writing a new line after binary data."); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:414:17 [INFO] [stderr] | [INFO] [stderr] 414 | write!(self, "{}\n", t.to_u8().unwrap()).expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:416:13 [INFO] [stderr] | [INFO] [stderr] 416 | write!(self, "\n").expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:426:13 [INFO] [stderr] | [INFO] [stderr] 426 | write!(self, "\n").expect(err); // finish with a new line [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `write!()` with a format string that ends in a single newline, consider using `writeln!()` instead [INFO] [stderr] --> src/writer.rs:430:13 [INFO] [stderr] | [INFO] [stderr] 430 | write!(self, "{}\n", data).expect(err); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#write_with_newline [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/basic.rs:168:47 [INFO] [stderr] | [INFO] [stderr] 168 | Self::data_vec::(input, n, ft).map(|vec: Vec| IOBuffer::from(vec)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `IOBuffer::from` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `model::Attributes` [INFO] [stderr] --> src/model.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | / pub fn new() -> Self { [INFO] [stderr] 107 | | Attributes { [INFO] [stderr] 108 | | point: Vec::new(), [INFO] [stderr] 109 | | cell: Vec::new(), [INFO] [stderr] 110 | | } [INFO] [stderr] 111 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 100 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:70:1 [INFO] [stderr] | [INFO] [stderr] 70 | named!(name, take_till!(|x: u8| " \t\n\r".as_bytes().contains(&x))); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 33 [INFO] [stderr] --> src/parser.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | / fn points(input: &[u8], ft: FileType) -> IResult<&[u8], IOBuffer> { [INFO] [stderr] 86 | | do_parse!( [INFO] [stderr] 87 | | input, [INFO] [stderr] 88 | | n: ws!(do_parse!(tag_no_case!("POINTS") >> n: u32_b >> (n))) [INFO] [stderr] ... | [INFO] [stderr] 97 | | ) [INFO] [stderr] 98 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | / do_parse!( [INFO] [stderr] 87 | | input, [INFO] [stderr] 88 | | n: ws!(do_parse!(tag_no_case!("POINTS") >> n: u32_b >> (n))) [INFO] [stderr] 89 | | >> vec: switch!( [INFO] [stderr] ... | [INFO] [stderr] 96 | | >> (vec) [INFO] [stderr] 97 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 34 [INFO] [stderr] --> src/parser.rs:121:5 [INFO] [stderr] | [INFO] [stderr] 121 | / fn coordinates(input: &[u8], axis: Axis, ft: FileType) -> IResult<&[u8], IOBuffer> { [INFO] [stderr] 122 | | let tag = match axis { [INFO] [stderr] 123 | | Axis::X => "X_COORDINATES", [INFO] [stderr] 124 | | Axis::Y => "Y_COORDINATES", [INFO] [stderr] ... | [INFO] [stderr] 138 | | ) [INFO] [stderr] 139 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:127:9 [INFO] [stderr] | [INFO] [stderr] 127 | / do_parse!( [INFO] [stderr] 128 | | input, [INFO] [stderr] 129 | | n: ws!(do_parse!(tag_no_case!(tag) >> n: u32_b >> (n))) [INFO] [stderr] 130 | | >> vec: switch!( [INFO] [stderr] ... | [INFO] [stderr] 137 | | >> (vec) [INFO] [stderr] 138 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:180:32 [INFO] [stderr] | [INFO] [stderr] 180 | eof!() => { |_| "".as_bytes() } | [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::string_lit_as_bytes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 40 [INFO] [stderr] --> src/parser.rs:185:5 [INFO] [stderr] | [INFO] [stderr] 185 | / fn attribute_scalars( [INFO] [stderr] 186 | | input: &[u8], [INFO] [stderr] 187 | | num_elements: usize, [INFO] [stderr] 188 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 218 | | ) [INFO] [stderr] 219 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:221:5 [INFO] [stderr] | [INFO] [stderr] 221 | / fn attribute_lookup_table(input: &[u8], ft: FileType) -> IResult<&[u8], (String, Attribute)> { [INFO] [stderr] 222 | | ws!( [INFO] [stderr] 223 | | input, [INFO] [stderr] 224 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 237 | | ) [INFO] [stderr] 238 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:253:5 [INFO] [stderr] | [INFO] [stderr] 253 | / fn attribute_color_scalars( [INFO] [stderr] 254 | | input: &[u8], [INFO] [stderr] 255 | | num_elements: usize, [INFO] [stderr] 256 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 275 | | ) [INFO] [stderr] 276 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:278:5 [INFO] [stderr] | [INFO] [stderr] 278 | / fn attribute_vectors( [INFO] [stderr] 279 | | input: &[u8], [INFO] [stderr] 280 | | num_elements: usize, [INFO] [stderr] 281 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 293 | | ) [INFO] [stderr] 294 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 296 | / fn attribute_normals( [INFO] [stderr] 297 | | input: &[u8], [INFO] [stderr] 298 | | num_elements: usize, [INFO] [stderr] 299 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 311 | | ) [INFO] [stderr] 312 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/parser.rs:314:5 [INFO] [stderr] | [INFO] [stderr] 314 | / fn attribute_tex_coords( [INFO] [stderr] 315 | | input: &[u8], [INFO] [stderr] 316 | | num_elements: usize, [INFO] [stderr] 317 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 333 | | ) [INFO] [stderr] 334 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:336:5 [INFO] [stderr] | [INFO] [stderr] 336 | / fn attribute_tensors( [INFO] [stderr] 337 | | input: &[u8], [INFO] [stderr] 338 | | num_elements: usize, [INFO] [stderr] 339 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 351 | | ) [INFO] [stderr] 352 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 31 [INFO] [stderr] --> src/parser.rs:354:5 [INFO] [stderr] | [INFO] [stderr] 354 | / fn attribute_field_array(input: &[u8], ft: FileType) -> IResult<&[u8], FieldArray> { [INFO] [stderr] 355 | | ws!( [INFO] [stderr] 356 | | input, [INFO] [stderr] 357 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 375 | | ) [INFO] [stderr] 376 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/parser.rs:378:5 [INFO] [stderr] | [INFO] [stderr] 378 | / fn attribute_field(input: &[u8], ft: FileType) -> IResult<&[u8], (String, Attribute)> { [INFO] [stderr] 379 | | ws!( [INFO] [stderr] 380 | | input, [INFO] [stderr] 381 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 393 | | ) [INFO] [stderr] 394 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 36 [INFO] [stderr] --> src/parser.rs:396:5 [INFO] [stderr] | [INFO] [stderr] 396 | / fn attribute( [INFO] [stderr] 397 | | input: &[u8], [INFO] [stderr] 398 | | num_elements: usize, [INFO] [stderr] 399 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 413 | | ) [INFO] [stderr] 414 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 34 [INFO] [stderr] --> src/parser.rs:416:5 [INFO] [stderr] | [INFO] [stderr] 416 | / fn point_attributes(input: &[u8], ft: FileType) -> IResult<&[u8], Vec<(String, Attribute)>> { [INFO] [stderr] 417 | | ws!( [INFO] [stderr] 418 | | input, [INFO] [stderr] 419 | | alt_complete!( [INFO] [stderr] ... | [INFO] [stderr] 428 | | ) [INFO] [stderr] 429 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 31 [INFO] [stderr] --> src/parser.rs:431:5 [INFO] [stderr] | [INFO] [stderr] 431 | / fn cell_attributes(input: &[u8], ft: FileType) -> IResult<&[u8], Vec<(String, Attribute)>> { [INFO] [stderr] 432 | | alt_complete!(input, [INFO] [stderr] 433 | | do_parse!( [INFO] [stderr] 434 | | ws!( tag_no_case!("CELL_DATA") ) >> [INFO] [stderr] ... | [INFO] [stderr] 441 | | ) [INFO] [stderr] 442 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 97 [INFO] [stderr] --> src/parser.rs:464:5 [INFO] [stderr] | [INFO] [stderr] 464 | / fn structured_points(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 465 | | ws!( [INFO] [stderr] 466 | | input, [INFO] [stderr] 467 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 502 | | ) [INFO] [stderr] 503 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 43 [INFO] [stderr] --> src/parser.rs:506:5 [INFO] [stderr] | [INFO] [stderr] 506 | / fn structured_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 507 | | ws!( [INFO] [stderr] 508 | | input, [INFO] [stderr] 509 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 523 | | ) [INFO] [stderr] 524 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 52 [INFO] [stderr] --> src/parser.rs:527:5 [INFO] [stderr] | [INFO] [stderr] 527 | / fn rectilinear_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 528 | | ws!( [INFO] [stderr] 529 | | input, [INFO] [stderr] 530 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 552 | | ) [INFO] [stderr] 553 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/basic.rs:168:47 [INFO] [stderr] | [INFO] [stderr] 168 | Self::data_vec::(input, n, ft).map(|vec: Vec| IOBuffer::from(vec)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `IOBuffer::from` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:191:9 [INFO] [stderr] | [INFO] [stderr] 191 | assert_eq!(real::(&b"-0.00005"[..]).unwrap().1, -0.00005); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:191:9 [INFO] [stderr] | [INFO] [stderr] 191 | assert_eq!(real::(&b"-0.00005"[..]).unwrap().1, -0.00005); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:192:9 [INFO] [stderr] | [INFO] [stderr] 192 | assert_eq!(real::(&b"4."[..]).unwrap().1, 4.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:192:9 [INFO] [stderr] | [INFO] [stderr] 192 | assert_eq!(real::(&b"4."[..]).unwrap().1, 4.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | assert_eq!(real::(&b"3"[..]).unwrap().1, 3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:193:9 [INFO] [stderr] | [INFO] [stderr] 193 | assert_eq!(real::(&b"3"[..]).unwrap().1, 3.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:194:9 [INFO] [stderr] | [INFO] [stderr] 194 | assert_eq!(real::(&b"-.3"[..]).unwrap().1, -0.3); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:194:9 [INFO] [stderr] | [INFO] [stderr] 194 | assert_eq!(real::(&b"-.3"[..]).unwrap().1, -0.3); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:195:9 [INFO] [stderr] | [INFO] [stderr] 195 | assert_eq!(real::(&b"3e3"[..]).unwrap().1, 3000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:195:9 [INFO] [stderr] | [INFO] [stderr] 195 | assert_eq!(real::(&b"3e3"[..]).unwrap().1, 3000.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:196:9 [INFO] [stderr] | [INFO] [stderr] 196 | assert_eq!(real::(&b"-3.2e2"[..]).unwrap().1, -320.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:196:9 [INFO] [stderr] | [INFO] [stderr] 196 | assert_eq!(real::(&b"-3.2e2"[..]).unwrap().1, -320.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:207:9 [INFO] [stderr] | [INFO] [stderr] 207 | / assert_eq!( [INFO] [stderr] 208 | | f32::from_binary::(&[0u8, 0, 0, 0]).unwrap().1, [INFO] [stderr] 209 | | 0.0_f32 [INFO] [stderr] 210 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:207:9 [INFO] [stderr] | [INFO] [stderr] 207 | / assert_eq!( [INFO] [stderr] 208 | | f32::from_binary::(&[0u8, 0, 0, 0]).unwrap().1, [INFO] [stderr] 209 | | 0.0_f32 [INFO] [stderr] 210 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/basic.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | / assert_eq!( [INFO] [stderr] 212 | | f32::from_binary::(&[62u8, 32, 0, 0]).unwrap().1, [INFO] [stderr] 213 | | 0.15625_f32 [INFO] [stderr] 214 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/basic.rs:211:9 [INFO] [stderr] | [INFO] [stderr] 211 | / assert_eq!( [INFO] [stderr] 212 | | f32::from_binary::(&[62u8, 32, 0, 0]).unwrap().1, [INFO] [stderr] 213 | | 0.15625_f32 [INFO] [stderr] 214 | | ); [INFO] [stderr] | |__________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:218:50 [INFO] [stderr] | [INFO] [stderr] 218 | let f = ::data_buffer::("".as_bytes(), 0, FileType::ASCII); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::string_lit_as_bytes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:221:27 [INFO] [stderr] | [INFO] [stderr] 221 | IResult::Done("".as_bytes(), IOBuffer::from(Vec::::new())) [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:223:50 [INFO] [stderr] | [INFO] [stderr] 223 | let f = ::data_buffer::("3".as_bytes(), 1, FileType::ASCII); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"3"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:226:27 [INFO] [stderr] | [INFO] [stderr] 226 | IResult::Done("".as_bytes(), IOBuffer::from(vec![3.0f32])) [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:228:50 [INFO] [stderr] | [INFO] [stderr] 228 | let f = ::data_buffer::("3 32".as_bytes(), 2, FileType::ASCII); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"3 32"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:231:27 [INFO] [stderr] | [INFO] [stderr] 231 | IResult::Done("".as_bytes(), IOBuffer::from(vec![3.0f32, 32.0])) [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:233:50 [INFO] [stderr] | [INFO] [stderr] 233 | let f = ::data_buffer::("3 32 32.0 4e3".as_bytes(), 4, FileType::ASCII); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"3 32 32.0 4e3"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:237:17 [INFO] [stderr] | [INFO] [stderr] 237 | "".as_bytes(), [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:241:50 [INFO] [stderr] | [INFO] [stderr] 241 | let f = ::data_buffer::("3 32 32.0 4e3".as_bytes(), 4, FileType::ASCII); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"3 32 32.0 4e3"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/basic.rs:245:17 [INFO] [stderr] | [INFO] [stderr] 245 | "".as_bytes(), [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/parser.rs:598:5 [INFO] [stderr] | [INFO] [stderr] 598 | / fn unstructured_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 599 | | ws!( [INFO] [stderr] 600 | | input, [INFO] [stderr] 601 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 615 | | ) [INFO] [stderr] 616 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: you should consider deriving a `Default` implementation for `model::Attributes` [INFO] [stderr] --> src/model.rs:106:5 [INFO] [stderr] | [INFO] [stderr] 106 | / pub fn new() -> Self { [INFO] [stderr] 107 | | Attributes { [INFO] [stderr] 108 | | point: Vec::new(), [INFO] [stderr] 109 | | cell: Vec::new(), [INFO] [stderr] 110 | | } [INFO] [stderr] 111 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default_derive)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default_derive [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 100 | #[derive(Default)] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:624:17 [INFO] [stderr] | [INFO] [stderr] 624 | |x| PolyDataTopology::Lines(x) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `PolyDataTopology::Lines` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:70:1 [INFO] [stderr] | [INFO] [stderr] 70 | named!(name, take_till!(|x: u8| " \t\n\r".as_bytes().contains(&x))); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 33 [INFO] [stderr] --> src/parser.rs:85:5 [INFO] [stderr] | [INFO] [stderr] 85 | / fn points(input: &[u8], ft: FileType) -> IResult<&[u8], IOBuffer> { [INFO] [stderr] 86 | | do_parse!( [INFO] [stderr] 87 | | input, [INFO] [stderr] 88 | | n: ws!(do_parse!(tag_no_case!("POINTS") >> n: u32_b >> (n))) [INFO] [stderr] ... | [INFO] [stderr] 97 | | ) [INFO] [stderr] 98 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cyclomatic_complexity)] on by default [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:86:9 [INFO] [stderr] | [INFO] [stderr] 86 | / do_parse!( [INFO] [stderr] 87 | | input, [INFO] [stderr] 88 | | n: ws!(do_parse!(tag_no_case!("POINTS") >> n: u32_b >> (n))) [INFO] [stderr] 89 | | >> vec: switch!( [INFO] [stderr] ... | [INFO] [stderr] 96 | | >> (vec) [INFO] [stderr] 97 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 34 [INFO] [stderr] --> src/parser.rs:121:5 [INFO] [stderr] | [INFO] [stderr] 121 | / fn coordinates(input: &[u8], axis: Axis, ft: FileType) -> IResult<&[u8], IOBuffer> { [INFO] [stderr] 122 | | let tag = match axis { [INFO] [stderr] 123 | | Axis::X => "X_COORDINATES", [INFO] [stderr] 124 | | Axis::Y => "Y_COORDINATES", [INFO] [stderr] ... | [INFO] [stderr] 138 | | ) [INFO] [stderr] 139 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:127:9 [INFO] [stderr] | [INFO] [stderr] 127 | / do_parse!( [INFO] [stderr] 128 | | input, [INFO] [stderr] 129 | | n: ws!(do_parse!(tag_no_case!(tag) >> n: u32_b >> (n))) [INFO] [stderr] 130 | | >> vec: switch!( [INFO] [stderr] ... | [INFO] [stderr] 137 | | >> (vec) [INFO] [stderr] 138 | | ) [INFO] [stderr] | |_________^ [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_must_use)] on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/writer.rs:57:42 [INFO] [stderr] | [INFO] [stderr] 57 | lookup_table.unwrap_or(String::from("default")) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| String::from("default"))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:169:21 [INFO] [stderr] | [INFO] [stderr] 169 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:180:32 [INFO] [stderr] | [INFO] [stderr] 180 | eof!() => { |_| "".as_bytes() } | [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 40 [INFO] [stderr] --> src/parser.rs:185:5 [INFO] [stderr] | [INFO] [stderr] 185 | / fn attribute_scalars( [INFO] [stderr] 186 | | input: &[u8], [INFO] [stderr] 187 | | num_elements: usize, [INFO] [stderr] 188 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 218 | | ) [INFO] [stderr] 219 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:331:13 [INFO] [stderr] | [INFO] [stderr] 331 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> src/writer.rs:338:29 [INFO] [stderr] | [INFO] [stderr] 338 | Ok(v) => Ok(v), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unit_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 338 | Ok(v) => Ok(()), [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> src/writer.rs:405:29 [INFO] [stderr] | [INFO] [stderr] 405 | Ok(v) => Ok(v), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 405 | Ok(v) => Ok(()), [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:221:5 [INFO] [stderr] | [INFO] [stderr] 221 | / fn attribute_lookup_table(input: &[u8], ft: FileType) -> IResult<&[u8], (String, Attribute)> { [INFO] [stderr] 222 | | ws!( [INFO] [stderr] 223 | | input, [INFO] [stderr] 224 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 237 | | ) [INFO] [stderr] 238 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:253:5 [INFO] [stderr] | [INFO] [stderr] 253 | / fn attribute_color_scalars( [INFO] [stderr] 254 | | input: &[u8], [INFO] [stderr] 255 | | num_elements: usize, [INFO] [stderr] 256 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 275 | | ) [INFO] [stderr] 276 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:278:5 [INFO] [stderr] | [INFO] [stderr] 278 | / fn attribute_vectors( [INFO] [stderr] 279 | | input: &[u8], [INFO] [stderr] 280 | | num_elements: usize, [INFO] [stderr] 281 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 293 | | ) [INFO] [stderr] 294 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:296:5 [INFO] [stderr] | [INFO] [stderr] 296 | / fn attribute_normals( [INFO] [stderr] 297 | | input: &[u8], [INFO] [stderr] 298 | | num_elements: usize, [INFO] [stderr] 299 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 311 | | ) [INFO] [stderr] 312 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/parser.rs:314:5 [INFO] [stderr] | [INFO] [stderr] 314 | / fn attribute_tex_coords( [INFO] [stderr] 315 | | input: &[u8], [INFO] [stderr] 316 | | num_elements: usize, [INFO] [stderr] 317 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 333 | | ) [INFO] [stderr] 334 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 28 [INFO] [stderr] --> src/parser.rs:336:5 [INFO] [stderr] | [INFO] [stderr] 336 | / fn attribute_tensors( [INFO] [stderr] 337 | | input: &[u8], [INFO] [stderr] 338 | | num_elements: usize, [INFO] [stderr] 339 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 351 | | ) [INFO] [stderr] 352 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 31 [INFO] [stderr] --> src/parser.rs:354:5 [INFO] [stderr] | [INFO] [stderr] 354 | / fn attribute_field_array(input: &[u8], ft: FileType) -> IResult<&[u8], FieldArray> { [INFO] [stderr] 355 | | ws!( [INFO] [stderr] 356 | | input, [INFO] [stderr] 357 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 375 | | ) [INFO] [stderr] 376 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 32 [INFO] [stderr] --> src/parser.rs:378:5 [INFO] [stderr] | [INFO] [stderr] 378 | / fn attribute_field(input: &[u8], ft: FileType) -> IResult<&[u8], (String, Attribute)> { [INFO] [stderr] 379 | | ws!( [INFO] [stderr] 380 | | input, [INFO] [stderr] 381 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 393 | | ) [INFO] [stderr] 394 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 36 [INFO] [stderr] --> src/parser.rs:396:5 [INFO] [stderr] | [INFO] [stderr] 396 | / fn attribute( [INFO] [stderr] 397 | | input: &[u8], [INFO] [stderr] 398 | | num_elements: usize, [INFO] [stderr] 399 | | ft: FileType, [INFO] [stderr] ... | [INFO] [stderr] 413 | | ) [INFO] [stderr] 414 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 34 [INFO] [stderr] --> src/parser.rs:416:5 [INFO] [stderr] | [INFO] [stderr] 416 | / fn point_attributes(input: &[u8], ft: FileType) -> IResult<&[u8], Vec<(String, Attribute)>> { [INFO] [stderr] 417 | | ws!( [INFO] [stderr] 418 | | input, [INFO] [stderr] 419 | | alt_complete!( [INFO] [stderr] ... | [INFO] [stderr] 428 | | ) [INFO] [stderr] 429 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 31 [INFO] [stderr] --> src/parser.rs:431:5 [INFO] [stderr] | [INFO] [stderr] 431 | / fn cell_attributes(input: &[u8], ft: FileType) -> IResult<&[u8], Vec<(String, Attribute)>> { [INFO] [stderr] 432 | | alt_complete!(input, [INFO] [stderr] 433 | | do_parse!( [INFO] [stderr] 434 | | ws!( tag_no_case!("CELL_DATA") ) >> [INFO] [stderr] ... | [INFO] [stderr] 441 | | ) [INFO] [stderr] 442 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 97 [INFO] [stderr] --> src/parser.rs:464:5 [INFO] [stderr] | [INFO] [stderr] 464 | / fn structured_points(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 465 | | ws!( [INFO] [stderr] 466 | | input, [INFO] [stderr] 467 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 502 | | ) [INFO] [stderr] 503 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 43 [INFO] [stderr] --> src/parser.rs:506:5 [INFO] [stderr] | [INFO] [stderr] 506 | / fn structured_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 507 | | ws!( [INFO] [stderr] 508 | | input, [INFO] [stderr] 509 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 523 | | ) [INFO] [stderr] 524 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 52 [INFO] [stderr] --> src/parser.rs:527:5 [INFO] [stderr] | [INFO] [stderr] 527 | / fn rectilinear_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 528 | | ws!( [INFO] [stderr] 529 | | input, [INFO] [stderr] 530 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 552 | | ) [INFO] [stderr] 553 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: the function has a cyclomatic complexity of 30 [INFO] [stderr] --> src/parser.rs:598:5 [INFO] [stderr] | [INFO] [stderr] 598 | / fn unstructured_grid(input: &[u8], ft: FileType) -> IResult<&[u8], DataSet> { [INFO] [stderr] 599 | | ws!( [INFO] [stderr] 600 | | input, [INFO] [stderr] 601 | | do_parse!( [INFO] [stderr] ... | [INFO] [stderr] 615 | | ) [INFO] [stderr] 616 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: you could split it up into multiple smaller functions [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cyclomatic_complexity [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/parser.rs:624:17 [INFO] [stderr] | [INFO] [stderr] 624 | |x| PolyDataTopology::Lines(x) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `PolyDataTopology::Lines` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:706:27 [INFO] [stderr] | [INFO] [stderr] 706 | let f = file_type("BINARY".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"BINARY"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:708:27 [INFO] [stderr] | [INFO] [stderr] 708 | let f = file_type("ASCII".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"ASCII"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:719:37 [INFO] [stderr] | [INFO] [stderr] 719 | assert_eq!(f, IResult::Done("BINARY".as_bytes(), "This is a title")); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"BINARY"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:726:37 [INFO] [stderr] | [INFO] [stderr] 726 | assert_eq!(f, IResult::Done("".as_bytes(), Vec::::new().into())); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:731:17 [INFO] [stderr] | [INFO] [stderr] 731 | "other".as_bytes(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"other"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:745:17 [INFO] [stderr] | [INFO] [stderr] 745 | "".as_bytes(), [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:756:17 [INFO] [stderr] | [INFO] [stderr] 756 | "other".as_bytes(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"other"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:766:40 [INFO] [stderr] | [INFO] [stderr] 766 | let f = ::cell_type("2".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"2"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:767:37 [INFO] [stderr] | [INFO] [stderr] 767 | assert_eq!(f, IResult::Done("".as_bytes(), CellType::PolyVertex)); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:768:40 [INFO] [stderr] | [INFO] [stderr] 768 | let f = ::cell_type("10".as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"10"` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:769:37 [INFO] [stderr] | [INFO] [stderr] 769 | assert_eq!(f, IResult::Done("".as_bytes(), CellType::Tetra)); [INFO] [stderr] | ^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:774:84 [INFO] [stderr] | [INFO] [stderr] 774 | assert_eq!(::$fn($in.as_bytes(), $($args),*), IResult::Done($rem.as_bytes(), $out.clone())); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"other"` [INFO] [stderr] ... [INFO] [stderr] 793 | test!(cell_types(in1, FileType::ASCII) => ("other", out1)); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:774:84 [INFO] [stderr] | [INFO] [stderr] 774 | assert_eq!(::$fn($in.as_bytes(), $($args),*), IResult::Done($rem.as_bytes(), $out.clone())); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"other"` [INFO] [stderr] ... [INFO] [stderr] 794 | test!(cell_types(in2, FileType::ASCII) => ("other", out2)); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:774:84 [INFO] [stderr] | [INFO] [stderr] 774 | assert_eq!(::$fn($in.as_bytes(), $($args),*), IResult::Done($rem.as_bytes(), $out.clone())); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"other"` [INFO] [stderr] ... [INFO] [stderr] 812 | test!(unstructured_grid(in1, FileType::ASCII) => ("other", out1)); [INFO] [stderr] | ------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:774:84 [INFO] [stderr] | [INFO] [stderr] 774 | assert_eq!(::$fn($in.as_bytes(), $($args),*), IResult::Done($rem.as_bytes(), $out.clone())); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] ... [INFO] [stderr] 826 | test!(attribute(in1, 6, FileType::ASCII) => ("", out1)); [INFO] [stderr] | -------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on a string literal [INFO] [stderr] --> src/parser.rs:774:41 [INFO] [stderr] | [INFO] [stderr] 774 | assert_eq!(::$fn($in.as_bytes(), $($args),*), IResult::Done($rem.as_bytes(), $out.clone())); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b""` [INFO] [stderr] ... [INFO] [stderr] 833 | test!(point_attributes("", FileType::ASCII) => Vec::new()); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:40:17 [INFO] [stderr] | [INFO] [stderr] 40 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_must_use)] on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/writer.rs:57:42 [INFO] [stderr] | [INFO] [stderr] 57 | lookup_table.unwrap_or(String::from("default")) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| String::from("default"))` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:169:21 [INFO] [stderr] | [INFO] [stderr] 169 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/writer.rs:331:13 [INFO] [stderr] | [INFO] [stderr] 331 | write!(self, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> src/writer.rs:338:29 [INFO] [stderr] | [INFO] [stderr] 338 | Ok(v) => Ok(v), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unit_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 338 | Ok(v) => Ok(()), [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: passing a unit value to a function [INFO] [stderr] --> src/writer.rs:405:29 [INFO] [stderr] | [INFO] [stderr] 405 | Ok(v) => Ok(v), [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg [INFO] [stderr] help: if you intended to pass a unit value, use a unit literal instead [INFO] [stderr] | [INFO] [stderr] 405 | Ok(v) => Ok(()), [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `vtkio`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:373:38 [INFO] [stderr] | [INFO] [stderr] 373 | 0_f32, 0.2, 0., 0.1, 0.184843, 0., 0., 0.25, 0., 0.1, 0.234843, 0., 0., 0.2, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.184_843` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:373:71 [INFO] [stderr] | [INFO] [stderr] 373 | 0_f32, 0.2, 0., 0.1, 0.184843, 0., 0., 0.25, 0., 0.1, 0.234843, 0., 0., 0.2, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.234_843` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:17 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.333_333` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:32 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.184_843` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:42 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.333_333` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:62 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.333_333` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:77 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.234_843` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:374:87 [INFO] [stderr] | [INFO] [stderr] 374 | 0.333333, 0.1, 0.184843, 0.333333, 0., 0.25, 0.333333, 0.1, 0.234843, 0.333333, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.333_333` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:390:40 [INFO] [stderr] | [INFO] [stderr] 390 | 0_f32, 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, 0., 0., [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.028_767_1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:390:59 [INFO] [stderr] | [INFO] [stderr] 390 | 0_f32, 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, 0., 0., [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.025_860_4` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:390:78 [INFO] [stderr] | [INFO] [stderr] 390 | 0_f32, 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, 0., 0., [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.028_767_1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:391:33 [INFO] [stderr] | [INFO] [stderr] 391 | 0.0258604, 0., 0., 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.025_860_4` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:391:52 [INFO] [stderr] | [INFO] [stderr] 391 | 0.0258604, 0., 0., 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.028_767_1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:391:71 [INFO] [stderr] | [INFO] [stderr] 391 | 0.0258604, 0., 0., 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.025_860_4` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:391:90 [INFO] [stderr] | [INFO] [stderr] 391 | 0.0258604, 0., 0., 0.0287671, 0., 0., 0.0258604, 0., 0., 0.0287671, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.028_767_1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:392:41 [INFO] [stderr] | [INFO] [stderr] 392 | 0., 0., 0.0258604, 0., [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.025_860_4` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:761:17 [INFO] [stderr] | [INFO] [stderr] 761 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:766:18 [INFO] [stderr] | [INFO] [stderr] 766 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:772:18 [INFO] [stderr] | [INFO] [stderr] 772 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:773:18 [INFO] [stderr] | [INFO] [stderr] 773 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:779:18 [INFO] [stderr] | [INFO] [stderr] 779 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:784:17 [INFO] [stderr] | [INFO] [stderr] 784 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:790:17 [INFO] [stderr] | [INFO] [stderr] 790 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:791:17 [INFO] [stderr] | [INFO] [stderr] 791 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:822:17 [INFO] [stderr] | [INFO] [stderr] 822 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:827:18 [INFO] [stderr] | [INFO] [stderr] 827 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:833:18 [INFO] [stderr] | [INFO] [stderr] 833 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:834:18 [INFO] [stderr] | [INFO] [stderr] 834 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:840:18 [INFO] [stderr] | [INFO] [stderr] 840 | -0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:845:17 [INFO] [stderr] | [INFO] [stderr] 845 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:851:17 [INFO] [stderr] | [INFO] [stderr] 851 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:852:17 [INFO] [stderr] | [INFO] [stderr] 852 | 0.433013, [INFO] [stderr] | ^^^^^^^^ help: consider: `0.433_013` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:879:17 [INFO] [stderr] | [INFO] [stderr] 879 | 0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:884:18 [INFO] [stderr] | [INFO] [stderr] 884 | -0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:885:17 [INFO] [stderr] | [INFO] [stderr] 885 | 3.061617e-17, [INFO] [stderr] | ^^^^^^^^^^^^ help: consider: `3.061_617e-17` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:890:18 [INFO] [stderr] | [INFO] [stderr] 890 | -0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:891:18 [INFO] [stderr] | [INFO] [stderr] 891 | -0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:896:18 [INFO] [stderr] | [INFO] [stderr] 896 | -6.123234e-17, [INFO] [stderr] | ^^^^^^^^^^^^ help: consider: `6.123_234e-17` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:897:18 [INFO] [stderr] | [INFO] [stderr] 897 | -0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:902:17 [INFO] [stderr] | [INFO] [stderr] 902 | 0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:903:18 [INFO] [stderr] | [INFO] [stderr] 903 | -9.184851e-17, [INFO] [stderr] | ^^^^^^^^^^^^ help: consider: `9.184_851e-17` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:908:17 [INFO] [stderr] | [INFO] [stderr] 908 | 0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> tests/vtkio.rs:909:17 [INFO] [stderr] | [INFO] [stderr] 909 | 0.4330127, [INFO] [stderr] | ^^^^^^^^^ help: consider: `0.433_012_7` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on `include_str!(..)` [INFO] [stderr] --> tests/vtkio.rs:56:15 [INFO] [stderr] | [INFO] [stderr] 56 | let in2 = include_str!("../assets/para_tet_ascii.vtk").as_bytes(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `include_bytes!(..)` instead: `include_bytes!("../assets/para_tet_ascii.vtk")` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::string_lit_as_bytes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] warning: calling `as_bytes()` on `include_str!(..)` [INFO] [stderr] --> tests/vtkio.rs:96:15 [INFO] [stderr] | [INFO] [stderr] 96 | let in2 = include_str!("../assets/para_test_ascii.vtk").as_bytes(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `include_bytes!(..)` instead: `include_bytes!("../assets/para_test_ascii.vtk")` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#string_lit_as_bytes [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "d734df3cfc6f9afcff1e60c7f1881f71a706a64841c4d37d4fcd0ae4cd09529e"` [INFO] running `"docker" "rm" "-f" "d734df3cfc6f9afcff1e60c7f1881f71a706a64841c4d37d4fcd0ae4cd09529e"` [INFO] [stdout] d734df3cfc6f9afcff1e60c7f1881f71a706a64841c4d37d4fcd0ae4cd09529e