[INFO] updating cached repository k00432/rustFFmpegFFI [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/k00432/rustFFmpegFFI [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/k00432/rustFFmpegFFI" "work/ex/clippy-test-run/sources/stable/gh/k00432/rustFFmpegFFI"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/k00432/rustFFmpegFFI'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/k00432/rustFFmpegFFI" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/k00432/rustFFmpegFFI"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/k00432/rustFFmpegFFI'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 96f93245e90a27bbc168a260211935630b654013 [INFO] sha for GitHub repo k00432/rustFFmpegFFI: 96f93245e90a27bbc168a260211935630b654013 [INFO] validating manifest of k00432/rustFFmpegFFI 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 k00432/rustFFmpegFFI 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 k00432/rustFFmpegFFI [INFO] finished frobbing k00432/rustFFmpegFFI [INFO] frobbed toml for k00432/rustFFmpegFFI written to work/ex/clippy-test-run/sources/stable/gh/k00432/rustFFmpegFFI/Cargo.toml [INFO] started frobbing k00432/rustFFmpegFFI [INFO] finished frobbing k00432/rustFFmpegFFI [INFO] frobbed toml for k00432/rustFFmpegFFI written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/k00432/rustFFmpegFFI/Cargo.toml [INFO] crate k00432/rustFFmpegFFI 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 k00432/rustFFmpegFFI against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/k00432/rustFFmpegFFI:/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] 7dea27b45b68a4f8348f92de97f749b7eb57dddb9d6adb496deb7657ab042a59 [INFO] running `"docker" "start" "-a" "7dea27b45b68a4f8348f92de97f749b7eb57dddb9d6adb496deb7657ab042a59"` [INFO] [stderr] Checking ffmpeg v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:413:22 [INFO] [stderr] | [INFO] [stderr] 413 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::approx_constant)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:414:24 [INFO] [stderr] | [INFO] [stderr] 414 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:415:25 [INFO] [stderr] | [INFO] [stderr] 415 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:418:23 [INFO] [stderr] | [INFO] [stderr] 418 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:419:25 [INFO] [stderr] | [INFO] [stderr] 419 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:420:28 [INFO] [stderr] | [INFO] [stderr] 420 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:421:26 [INFO] [stderr] | [INFO] [stderr] 421 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:514:22 [INFO] [stderr] | [INFO] [stderr] 514 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:515:24 [INFO] [stderr] | [INFO] [stderr] 515 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:516:25 [INFO] [stderr] | [INFO] [stderr] 516 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:519:23 [INFO] [stderr] | [INFO] [stderr] 519 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:520:25 [INFO] [stderr] | [INFO] [stderr] 520 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:521:28 [INFO] [stderr] | [INFO] [stderr] 521 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:522:26 [INFO] [stderr] | [INFO] [stderr] 522 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:414:22 [INFO] [stderr] | [INFO] [stderr] 414 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:415:24 [INFO] [stderr] | [INFO] [stderr] 415 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:416:25 [INFO] [stderr] | [INFO] [stderr] 416 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:419:23 [INFO] [stderr] | [INFO] [stderr] 419 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:420:25 [INFO] [stderr] | [INFO] [stderr] 420 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:421:28 [INFO] [stderr] | [INFO] [stderr] 421 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:422:26 [INFO] [stderr] | [INFO] [stderr] 422 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `while let` loop [INFO] [stderr] --> src/main.rs:48:17 [INFO] [stderr] | [INFO] [stderr] 48 | / loop{ [INFO] [stderr] 49 | | match avformat::av_read_frame(ps, &mut pkt){ [INFO] [stderr] 50 | | 0 => { [INFO] [stderr] 51 | | println!("pkt size {}",pkt.size); [INFO] [stderr] ... | [INFO] [stderr] 61 | | [INFO] [stderr] 62 | | } [INFO] [stderr] | |_________________^ help: try: `while let 0 = avformat::av_read_frame(ps, &mut pkt) { .. }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stderr] [INFO] [stderr] error: aborting due to 21 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `ffmpeg`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:413:22 [INFO] [stderr] | [INFO] [stderr] 413 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::approx_constant)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:414:24 [INFO] [stderr] | [INFO] [stderr] 414 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:415:25 [INFO] [stderr] | [INFO] [stderr] 415 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:418:23 [INFO] [stderr] | [INFO] [stderr] 418 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:419:25 [INFO] [stderr] | [INFO] [stderr] 419 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:420:28 [INFO] [stderr] | [INFO] [stderr] 420 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avcodec.rs:421:26 [INFO] [stderr] | [INFO] [stderr] 421 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:514:22 [INFO] [stderr] | [INFO] [stderr] 514 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:515:24 [INFO] [stderr] | [INFO] [stderr] 515 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:516:25 [INFO] [stderr] | [INFO] [stderr] 516 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:519:23 [INFO] [stderr] | [INFO] [stderr] 519 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:520:25 [INFO] [stderr] | [INFO] [stderr] 520 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:521:28 [INFO] [stderr] | [INFO] [stderr] 521 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avformat.rs:522:26 [INFO] [stderr] | [INFO] [stderr] 522 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::E` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:414:22 [INFO] [stderr] | [INFO] [stderr] 414 | pub const M_E: f64 = 2.718281828459045; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:415:24 [INFO] [stderr] | [INFO] [stderr] 415 | pub const M_LN2: f64 = 0.6931471805599453; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::LN_10` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:416:25 [INFO] [stderr] | [INFO] [stderr] 416 | pub const M_LN10: f64 = 2.302585092994046; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::PI` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:419:23 [INFO] [stderr] | [INFO] [stderr] 419 | pub const M_PI: f64 = 3.141592653589793; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_PI_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:420:25 [INFO] [stderr] | [INFO] [stderr] 420 | pub const M_PI_2: f64 = 1.5707963267948966; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::FRAC_1_SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:421:28 [INFO] [stderr] | [INFO] [stderr] 421 | pub const M_SQRT1_2: f64 = 0.7071067811865476; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] error: approximate value of `f{32, 64}::consts::SQRT_2` found. Consider using it directly [INFO] [stderr] --> src/avutil.rs:422:26 [INFO] [stderr] | [INFO] [stderr] 422 | pub const M_SQRT2: f64 = 1.4142135623730951; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#approx_constant [INFO] [stderr] [INFO] [stderr] warning: this loop could be written as a `while let` loop [INFO] [stderr] --> src/main.rs:48:17 [INFO] [stderr] | [INFO] [stderr] 48 | / loop{ [INFO] [stderr] 49 | | match avformat::av_read_frame(ps, &mut pkt){ [INFO] [stderr] 50 | | 0 => { [INFO] [stderr] 51 | | println!("pkt size {}",pkt.size); [INFO] [stderr] ... | [INFO] [stderr] 61 | | [INFO] [stderr] 62 | | } [INFO] [stderr] | |_________________^ help: try: `while let 0 = avformat::av_read_frame(ps, &mut pkt) { .. }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::while_let_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#while_let_loop [INFO] [stderr] [INFO] [stderr] error: aborting due to 21 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `ffmpeg`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "7dea27b45b68a4f8348f92de97f749b7eb57dddb9d6adb496deb7657ab042a59"` [INFO] running `"docker" "rm" "-f" "7dea27b45b68a4f8348f92de97f749b7eb57dddb9d6adb496deb7657ab042a59"` [INFO] [stdout] 7dea27b45b68a4f8348f92de97f749b7eb57dddb9d6adb496deb7657ab042a59