[INFO] updating cached repository HeapUnderfl0w/ConwaysGameOfLife [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/HeapUnderfl0w/ConwaysGameOfLife [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/HeapUnderfl0w/ConwaysGameOfLife" "work/ex/clippy-test-run/sources/stable/gh/HeapUnderfl0w/ConwaysGameOfLife"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/HeapUnderfl0w/ConwaysGameOfLife'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/HeapUnderfl0w/ConwaysGameOfLife" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HeapUnderfl0w/ConwaysGameOfLife"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HeapUnderfl0w/ConwaysGameOfLife'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 00cb52962c68615ae488beaf77ddc0d037427816 [INFO] sha for GitHub repo HeapUnderfl0w/ConwaysGameOfLife: 00cb52962c68615ae488beaf77ddc0d037427816 [INFO] validating manifest of HeapUnderfl0w/ConwaysGameOfLife 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 HeapUnderfl0w/ConwaysGameOfLife 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 HeapUnderfl0w/ConwaysGameOfLife [INFO] finished frobbing HeapUnderfl0w/ConwaysGameOfLife [INFO] frobbed toml for HeapUnderfl0w/ConwaysGameOfLife written to work/ex/clippy-test-run/sources/stable/gh/HeapUnderfl0w/ConwaysGameOfLife/Cargo.toml [INFO] started frobbing HeapUnderfl0w/ConwaysGameOfLife [INFO] finished frobbing HeapUnderfl0w/ConwaysGameOfLife [INFO] frobbed toml for HeapUnderfl0w/ConwaysGameOfLife written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/HeapUnderfl0w/ConwaysGameOfLife/Cargo.toml [INFO] crate HeapUnderfl0w/ConwaysGameOfLife has a lockfile. skipping [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 HeapUnderfl0w/ConwaysGameOfLife against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/HeapUnderfl0w/ConwaysGameOfLife:/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] e85a0d1446777e2c72a2eb94933dd086500994f4a9434660e4ddb8176638d4c8 [INFO] running `"docker" "start" "-a" "e85a0d1446777e2c72a2eb94933dd086500994f4a9434660e4ddb8176638d4c8"` [INFO] [stderr] Compiling x11-dl v2.17.1 [INFO] [stderr] Compiling phf_generator v0.7.21 [INFO] [stderr] Checking tempfile v2.2.0 [INFO] [stderr] Checking fs2 v0.2.5 [INFO] [stderr] Checking pistoncore-input v0.20.0 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking memmap v0.4.0 [INFO] [stderr] Compiling phf_codegen v0.7.21 [INFO] [stderr] Compiling target_build_utils v0.3.1 [INFO] [stderr] Checking pistoncore-window v0.30.0 [INFO] [stderr] Checking pistoncore-event_loop v0.35.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.50.0 [INFO] [stderr] Checking piston v0.35.0 [INFO] [stderr] Compiling libloading v0.3.4 [INFO] [stderr] Checking dlib v0.3.1 [INFO] [stderr] Checking wayland-sys v0.9.10 [INFO] [stderr] Checking wayland-client v0.9.10 [INFO] [stderr] Checking wayland-protocols v0.9.10 [INFO] [stderr] Checking wayland-kbd v0.9.1 [INFO] [stderr] Checking wayland-window v0.8.0 [INFO] [stderr] Checking winit v0.8.3 [INFO] [stderr] Checking glutin v0.10.1 [INFO] [stderr] Checking pistoncore-glutin_window v0.43.0 [INFO] [stderr] Checking game_of_life v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:89:17 [INFO] [stderr] | [INFO] [stderr] 89 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:91:17 [INFO] [stderr] | [INFO] [stderr] 91 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:105:17 [INFO] [stderr] | [INFO] [stderr] 105 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:106:17 [INFO] [stderr] | [INFO] [stderr] 106 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:124:13 [INFO] [stderr] | [INFO] [stderr] 124 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:125:13 [INFO] [stderr] | [INFO] [stderr] 125 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:127:13 [INFO] [stderr] | [INFO] [stderr] 127 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:88:17 [INFO] [stderr] | [INFO] [stderr] 88 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:89:17 [INFO] [stderr] | [INFO] [stderr] 89 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:90:17 [INFO] [stderr] | [INFO] [stderr] 90 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:91:17 [INFO] [stderr] | [INFO] [stderr] 91 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:105:17 [INFO] [stderr] | [INFO] [stderr] 105 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:106:17 [INFO] [stderr] | [INFO] [stderr] 106 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:108:17 [INFO] [stderr] | [INFO] [stderr] 108 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:124:13 [INFO] [stderr] | [INFO] [stderr] 124 | fields : fields, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: replace it with: `fields` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:125:13 [INFO] [stderr] | [INFO] [stderr] 125 | game : game, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: replace it with: `game` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:126:13 [INFO] [stderr] | [INFO] [stderr] 126 | ups : ups, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `ups` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/config.rs:127:13 [INFO] [stderr] | [INFO] [stderr] 127 | ups_reset: ups_reset, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `ups_reset` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:59:29 [INFO] [stderr] | [INFO] [stderr] 59 | fn update(&mut self, _: &UpdateArgs) { [INFO] [stderr] | ^^^^^^^^^^^ help: consider passing by value instead: `UpdateArgs` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/main.rs:75:55 [INFO] [stderr] | [INFO] [stderr] 75 | } else if !is_alive && neighbors == 3 { [INFO] [stderr] | _______________________________________________________^ [INFO] [stderr] 76 | | should_live = true; [INFO] [stderr] 77 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/main.rs:73:67 [INFO] [stderr] | [INFO] [stderr] 73 | if is_alive && (neighbors == 2 || neighbors == 3) { [INFO] [stderr] | ___________________________________________________________________^ [INFO] [stderr] 74 | | should_live = true; [INFO] [stderr] 75 | | } else if !is_alive && neighbors == 3 { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:85:43 [INFO] [stderr] | [INFO] [stderr] 85 | fn get_neighbors(cfg: &Config, board: &GameBoardType, xcord: usize, ycord: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:98:18 [INFO] [stderr] | [INFO] [stderr] 98 | board : &GameBoardType, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/main.rs:164:48 [INFO] [stderr] | [INFO] [stderr] 164 | let cfg = Config::load(&env::args().nth(1).unwrap_or(String::from("fields.txt"))).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| String::from("fields.txt"))` [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] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `game_of_life`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:59:29 [INFO] [stderr] | [INFO] [stderr] 59 | fn update(&mut self, _: &UpdateArgs) { [INFO] [stderr] | ^^^^^^^^^^^ help: consider passing by value instead: `UpdateArgs` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/main.rs:75:55 [INFO] [stderr] | [INFO] [stderr] 75 | } else if !is_alive && neighbors == 3 { [INFO] [stderr] | _______________________________________________________^ [INFO] [stderr] 76 | | should_live = true; [INFO] [stderr] 77 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/main.rs:73:67 [INFO] [stderr] | [INFO] [stderr] 73 | if is_alive && (neighbors == 2 || neighbors == 3) { [INFO] [stderr] | ___________________________________________________________________^ [INFO] [stderr] 74 | | should_live = true; [INFO] [stderr] 75 | | } else if !is_alive && neighbors == 3 { [INFO] [stderr] | |_________________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:85:43 [INFO] [stderr] | [INFO] [stderr] 85 | fn get_neighbors(cfg: &Config, board: &GameBoardType, xcord: usize, ycord: usize) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:98:18 [INFO] [stderr] | [INFO] [stderr] 98 | board : &GameBoardType, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: use of `unwrap_or` followed by a function call [INFO] [stderr] --> src/main.rs:164:48 [INFO] [stderr] | [INFO] [stderr] 164 | let cfg = Config::load(&env::args().nth(1).unwrap_or(String::from("fields.txt"))).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(|| String::from("fields.txt"))` [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] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `game_of_life`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e85a0d1446777e2c72a2eb94933dd086500994f4a9434660e4ddb8176638d4c8"` [INFO] running `"docker" "rm" "-f" "e85a0d1446777e2c72a2eb94933dd086500994f4a9434660e4ddb8176638d4c8"` [INFO] [stdout] e85a0d1446777e2c72a2eb94933dd086500994f4a9434660e4ddb8176638d4c8