[INFO] fetching crate mysqlbinlog 0.1.5...
[INFO] testing mysqlbinlog-0.1.5 against beta-2023-04-20 for beta-1.70-1
[INFO] extracting crate mysqlbinlog 0.1.5 into /workspace/builds/worker-1-tc2/source
[INFO] validating manifest of crates.io crate mysqlbinlog 0.1.5 on toolchain beta-2023-04-20
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate mysqlbinlog 0.1.5
[INFO] finished tweaking crates.io crate mysqlbinlog 0.1.5
[INFO] tweaked toml for crates.io crate mysqlbinlog 0.1.5 written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2023-04-20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded utf8-ranges v1.0.5
[INFO] [stderr]   Downloaded chrono v0.3.0
[INFO] [stderr]   Downloaded ucd-util v0.1.10
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 05872368086fe292cfed60ba1eb84cfd8d4f9dc664fedf1a6985c885087fc44f
[INFO] running `Command { std: "docker" "start" "-a" "05872368086fe292cfed60ba1eb84cfd8d4f9dc664fedf1a6985c885087fc44f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "05872368086fe292cfed60ba1eb84cfd8d4f9dc664fedf1a6985c885087fc44f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "05872368086fe292cfed60ba1eb84cfd8d4f9dc664fedf1a6985c885087fc44f", kill_on_drop: false }`
[INFO] [stdout] 05872368086fe292cfed60ba1eb84cfd8d4f9dc664fedf1a6985c885087fc44f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] fa78fece00113d7db802c77040dfcf9c8a0a8b10a5b2d994f6d7fe2cba936336
[INFO] running `Command { std: "docker" "start" "-a" "fa78fece00113d7db802c77040dfcf9c8a0a8b10a5b2d994f6d7fe2cba936336", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling num-iter v0.1.43
[INFO] [stderr]    Compiling libc v0.2.142
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling regex v0.2.11
[INFO] [stderr]    Compiling ucd-util v0.1.10
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling regex-syntax v0.5.6
[INFO] [stderr]    Compiling utf8-ranges v1.0.5
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling aho-corasick v0.6.10
[INFO] [stderr]    Compiling time v0.1.45
[INFO] [stderr]    Compiling num v0.1.42
[INFO] [stderr]    Compiling chrono v0.3.0
[INFO] [stderr]    Compiling mysqlbinlog v0.1.5 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `rowevents::value_type`
[INFO] [stdout]  --> src/rowevents/parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rowevents::value_type;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::option::Option`
[INFO] [stdout]   --> src/rowevents/parser.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::option::Option;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]   --> src/rowevents/parser.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::str;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::BufReader`
[INFO] [stdout]  --> src/rowevents/stream.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::BufReader;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process`
[INFO] [stdout]  --> src/rowevents/stream.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::process;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDate`
[INFO] [stdout]  --> src/rowevents/event_header.rs:2:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `LittleEndian`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use byteorder::{LittleEndian, BigEndian, ReadBytesExt};
[INFO] [stdout]   |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDateTime`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:6:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 67 -         from += (i * 4);
[INFO] [stdout] 67 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:78:17
[INFO] [stdout]    |
[INFO] [stdout] 78 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 78 -         from += (i * 4);
[INFO] [stdout] 78 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]   --> src/lib.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::rc::Rc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/rowevents/reader.rs:90:39
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     Event::Rotate(ref e) => {
[INFO] [stdout]    |                                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let data = self.stream.read(eh.get_event_len() - 19);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:110:41
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub fn read_rotate_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                         ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:116:17
[INFO] [stdout]     |
[INFO] [stdout] 116 |             let data = self.stream.read(57);
[INFO] [stdout]     |                 ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length_array`
[INFO] [stdout]    --> src/rowevents/parser.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let length_array = self.stream.read(eh.get_event_len() - (57 + 19));
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_array`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:123:38
[INFO] [stdout]     |
[INFO] [stdout] 123 |     pub fn read_xid_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                      ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `db_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:132:17
[INFO] [stdout]     |
[INFO] [stdout] 132 |         let mut db_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `table_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:133:17
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let mut table_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:185:17
[INFO] [stdout]     |
[INFO] [stdout] 185 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:205:17
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:228:17
[INFO] [stdout]     |
[INFO] [stdout] 228 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:250:17
[INFO] [stdout]     |
[INFO] [stdout] 250 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:251:17
[INFO] [stdout]     |
[INFO] [stdout] 251 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extra_data`
[INFO] [stdout]    --> src/rowevents/parser.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |             let extra_data = self.stream.read(extra_data_len - 2);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extra_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `slice_end`
[INFO] [stdout]    --> src/rowevents/parser.rs:354:17
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slice_end`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nullable`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:39:36
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn parse_field(field_type: u8, nullable: bool, metadata1: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]    |                                    ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metadata2`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:8:42
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn parse_datetime2(ms_precision: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]   |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:244:35
[INFO] [stdout]     |
[INFO] [stdout] 244 |                 &ValueType::Float(f) => {
[INFO] [stdout]     |                                   ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:250:36
[INFO] [stdout]     |
[INFO] [stdout] 250 |                 &ValueType::Double(f) => {
[INFO] [stdout]     |                                    ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]    --> src/lib.rs:256:41
[INFO] [stdout]     |
[INFO] [stdout] 256 |                 &ValueType::Decimal(ref d) => {
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/lib.rs:262:40
[INFO] [stdout]     |
[INFO] [stdout] 262 |                 &ValueType::String(ref i) => {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:281:67
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub extern fn binlog_reader_read_table_map_event(ptr: *mut Event, info: *mut EventInfo, db_name: *mut u8, table_name: *mut u8) -> bool {
[INFO] [stdout]     |                                                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:300:69
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:300:91
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:306:52
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:306:69
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:306:91
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/rowevents/parser.rs:354:13
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |             ----^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut result = File::open(filename);
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:35:19
[INFO] [stdout]    |
[INFO] [stdout] 35 |         if let Ok(mut file) = result {
[INFO] [stdout]    |                   ----^^^^
[INFO] [stdout]    |                   |
[INFO] [stdout]    |                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:51:17
[INFO] [stdout]    |
[INFO] [stdout] 51 |             let mut result = File::open(&next_binlog_filename);
[INFO] [stdout]    |                 ----^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:52:23
[INFO] [stdout]    |
[INFO] [stdout] 52 |             if let Ok(mut file) = result {
[INFO] [stdout]    |                       ----^^^^
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:95:9
[INFO] [stdout]    |
[INFO] [stdout] 95 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `filename` is never read
[INFO] [stdout]   --> src/rowevents/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Reader {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 12 |     filename: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `xid` is never read
[INFO] [stdout]   --> src/rowevents/events.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct XidEvent {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 48 |     xid: i64
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]   --> src/lib.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |         Box::from_raw(ptr);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 43 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:246:25
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:252:25
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:258:25
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:264:25
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:300:100
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout]     = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:306:100
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:381:9
[INFO] [stdout]     |
[INFO] [stdout] 381 |         Box::from_raw(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 381 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:43
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout]    = note: `#[warn(overflowing_literals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:43
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 62 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 14.58s
[INFO] running `Command { std: "docker" "inspect" "fa78fece00113d7db802c77040dfcf9c8a0a8b10a5b2d994f6d7fe2cba936336", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fa78fece00113d7db802c77040dfcf9c8a0a8b10a5b2d994f6d7fe2cba936336", kill_on_drop: false }`
[INFO] [stdout] fa78fece00113d7db802c77040dfcf9c8a0a8b10a5b2d994f6d7fe2cba936336
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2023-04-20" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f62892dd4a3db37b47ce1b46850536c4d0f0d1f4a20ec106fb2eba0cd543471b
[INFO] running `Command { std: "docker" "start" "-a" "f62892dd4a3db37b47ce1b46850536c4d0f0d1f4a20ec106fb2eba0cd543471b", kill_on_drop: false }`
[INFO] [stderr]    Compiling toml v0.4.10
[INFO] [stdout] warning: unused import: `rowevents::value_type`
[INFO] [stdout]  --> src/rowevents/parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rowevents::value_type;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::option::Option`
[INFO] [stdout]   --> src/rowevents/parser.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::option::Option;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]   --> src/rowevents/parser.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::str;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::BufReader`
[INFO] [stdout]  --> src/rowevents/stream.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::BufReader;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process`
[INFO] [stdout]  --> src/rowevents/stream.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::process;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDate`
[INFO] [stdout]  --> src/rowevents/event_header.rs:2:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `LittleEndian`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use byteorder::{LittleEndian, BigEndian, ReadBytesExt};
[INFO] [stdout]   |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDateTime`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:6:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 67 -         from += (i * 4);
[INFO] [stdout] 67 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:78:17
[INFO] [stdout]    |
[INFO] [stdout] 78 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 78 -         from += (i * 4);
[INFO] [stdout] 78 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]   --> src/lib.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::rc::Rc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/rowevents/reader.rs:90:39
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     Event::Rotate(ref e) => {
[INFO] [stdout]    |                                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let data = self.stream.read(eh.get_event_len() - 19);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:110:41
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub fn read_rotate_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                         ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:116:17
[INFO] [stdout]     |
[INFO] [stdout] 116 |             let data = self.stream.read(57);
[INFO] [stdout]     |                 ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length_array`
[INFO] [stdout]    --> src/rowevents/parser.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let length_array = self.stream.read(eh.get_event_len() - (57 + 19));
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_array`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:123:38
[INFO] [stdout]     |
[INFO] [stdout] 123 |     pub fn read_xid_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                      ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `db_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:132:17
[INFO] [stdout]     |
[INFO] [stdout] 132 |         let mut db_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `table_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:133:17
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let mut table_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:185:17
[INFO] [stdout]     |
[INFO] [stdout] 185 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:205:17
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:228:17
[INFO] [stdout]     |
[INFO] [stdout] 228 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:250:17
[INFO] [stdout]     |
[INFO] [stdout] 250 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:251:17
[INFO] [stdout]     |
[INFO] [stdout] 251 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extra_data`
[INFO] [stdout]    --> src/rowevents/parser.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |             let extra_data = self.stream.read(extra_data_len - 2);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extra_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `slice_end`
[INFO] [stdout]    --> src/rowevents/parser.rs:354:17
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slice_end`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nullable`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:39:36
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn parse_field(field_type: u8, nullable: bool, metadata1: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]    |                                    ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metadata2`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:8:42
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn parse_datetime2(ms_precision: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]   |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:244:35
[INFO] [stdout]     |
[INFO] [stdout] 244 |                 &ValueType::Float(f) => {
[INFO] [stdout]     |                                   ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:250:36
[INFO] [stdout]     |
[INFO] [stdout] 250 |                 &ValueType::Double(f) => {
[INFO] [stdout]     |                                    ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]    --> src/lib.rs:256:41
[INFO] [stdout]     |
[INFO] [stdout] 256 |                 &ValueType::Decimal(ref d) => {
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/lib.rs:262:40
[INFO] [stdout]     |
[INFO] [stdout] 262 |                 &ValueType::String(ref i) => {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:281:67
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub extern fn binlog_reader_read_table_map_event(ptr: *mut Event, info: *mut EventInfo, db_name: *mut u8, table_name: *mut u8) -> bool {
[INFO] [stdout]     |                                                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:300:69
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:300:91
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:306:52
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:306:69
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:306:91
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/rowevents/parser.rs:354:13
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |             ----^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut result = File::open(filename);
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:35:19
[INFO] [stdout]    |
[INFO] [stdout] 35 |         if let Ok(mut file) = result {
[INFO] [stdout]    |                   ----^^^^
[INFO] [stdout]    |                   |
[INFO] [stdout]    |                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:51:17
[INFO] [stdout]    |
[INFO] [stdout] 51 |             let mut result = File::open(&next_binlog_filename);
[INFO] [stdout]    |                 ----^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:52:23
[INFO] [stdout]    |
[INFO] [stdout] 52 |             if let Ok(mut file) = result {
[INFO] [stdout]    |                       ----^^^^
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:95:9
[INFO] [stdout]    |
[INFO] [stdout] 95 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `filename` is never read
[INFO] [stdout]   --> src/rowevents/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Reader {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 12 |     filename: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `xid` is never read
[INFO] [stdout]   --> src/rowevents/events.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct XidEvent {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 48 |     xid: i64
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]   --> src/lib.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |         Box::from_raw(ptr);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 43 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:246:25
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:252:25
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:258:25
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:264:25
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:300:100
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout]     = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:306:100
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:381:9
[INFO] [stdout]     |
[INFO] [stdout] 381 |         Box::from_raw(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 381 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:43
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout]    = note: `#[warn(overflowing_literals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:43
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 62 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling mysqlbinlog v0.1.5 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0061]: this method takes 0 arguments but 1 argument was supplied
[INFO] [stdout]   --> examples/sync_binlog_to_redis.rs:14:27
[INFO] [stdout]    |
[INFO] [stdout] 14 |             let event = r.read_event(&e1);
[INFO] [stdout]    |                           ^^^^^^^^^^ ---
[INFO] [stdout]    |                                      |
[INFO] [stdout]    |                                      unexpected argument of type `&EventHeader`
[INFO] [stdout]    |                                      help: remove the extra argument
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> /opt/rustwide/workdir/src/rowevents/reader.rs:70:12
[INFO] [stdout]    |
[INFO] [stdout] 70 |     pub fn read_event(&mut self) -> Result<(EventHeader, Event)> {
[INFO] [stdout]    |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/sync_binlog_to_redis.rs:16:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             match event {
[INFO] [stdout]    |                   ----- this expression has type `Result<(EventHeader, Event), std::io::Error>`
[INFO] [stdout] 16 |                 Ok(Event::Xid(e)) => println!("{:?}", e),
[INFO] [stdout]    |                    ^^^^^^^^^^^^^ expected `(EventHeader, Event)`, found `Event`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(EventHeader, Event)`
[INFO] [stdout]                found enum `Event`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/sync_binlog_to_redis.rs:17:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             match event {
[INFO] [stdout]    |                   ----- this expression has type `Result<(EventHeader, Event), std::io::Error>`
[INFO] [stdout] 16 |                 Ok(Event::Xid(e)) => println!("{:?}", e),
[INFO] [stdout] 17 |                 Ok(Event::Insert(e)) => println!("INSERT {:?}", e),
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^ expected `(EventHeader, Event)`, found `Event`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(EventHeader, Event)`
[INFO] [stdout]                found enum `Event`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/sync_binlog_to_redis.rs:18:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             match event {
[INFO] [stdout]    |                   ----- this expression has type `Result<(EventHeader, Event), std::io::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 18 |                 Ok(Event::Update(e)) => println!("UPDATE {:?}", e),
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^ expected `(EventHeader, Event)`, found `Event`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(EventHeader, Event)`
[INFO] [stdout]                found enum `Event`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> examples/sync_binlog_to_redis.rs:19:20
[INFO] [stdout]    |
[INFO] [stdout] 15 |             match event {
[INFO] [stdout]    |                   ----- this expression has type `Result<(EventHeader, Event), std::io::Error>`
[INFO] [stdout] ...
[INFO] [stdout] 19 |                 Ok(Event::Delete(e)) => println!("DELETE {:?}", e),
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^ expected `(EventHeader, Event)`, found `Event`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected tuple `(EventHeader, Event)`
[INFO] [stdout]                found enum `Event`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0308.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mysqlbinlog` (example "sync_binlog_to_redis") due to 6 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused `#[macro_use]` import
[INFO] [stdout]  --> examples/read_binlog_file.rs:4:1
[INFO] [stdout]   |
[INFO] [stdout] 4 | #[macro_use]
[INFO] [stdout]   | ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rowevents::value_type`
[INFO] [stdout]  --> src/rowevents/parser.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rowevents::value_type;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::option::Option`
[INFO] [stdout]   --> src/rowevents/parser.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::option::Option;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::str`
[INFO] [stdout]   --> src/rowevents/parser.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::str;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::io::BufReader`
[INFO] [stdout]  --> src/rowevents/stream.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::io::BufReader;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::process`
[INFO] [stdout]  --> src/rowevents/stream.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::process;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDate`
[INFO] [stdout]  --> src/rowevents/event_header.rs:2:29
[INFO] [stdout]   |
[INFO] [stdout] 2 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |                             ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `LittleEndian`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:2:17
[INFO] [stdout]   |
[INFO] [stdout] 2 | use byteorder::{LittleEndian, BigEndian, ReadBytesExt};
[INFO] [stdout]   |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `NaiveDateTime`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:6:14
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, NaiveDate};
[INFO] [stdout]   |              ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 67 -         from += (i * 4);
[INFO] [stdout] 67 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around assigned value
[INFO] [stdout]   --> src/rowevents/descriptor_decimal.rs:78:17
[INFO] [stdout]    |
[INFO] [stdout] 78 |         from += (i * 4);
[INFO] [stdout]    |                 ^     ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 78 -         from += (i * 4);
[INFO] [stdout] 78 +         from += i * 4;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::rc::Rc`
[INFO] [stdout]   --> src/lib.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::rc::Rc;
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> examples/read_binlog_file.rs:31:5
[INFO] [stdout]    |
[INFO] [stdout] 31 |     file.read_to_string(&mut content);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 31 |     let _ = file.read_to_string(&mut content);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/rowevents/reader.rs:90:39
[INFO] [stdout]    |
[INFO] [stdout] 90 |                     Event::Rotate(ref e) => {
[INFO] [stdout]    |                                       ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:106:13
[INFO] [stdout]     |
[INFO] [stdout] 106 |         let data = self.stream.read(eh.get_event_len() - 19);
[INFO] [stdout]     |             ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:110:41
[INFO] [stdout]     |
[INFO] [stdout] 110 |     pub fn read_rotate_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                         ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `data`
[INFO] [stdout]    --> src/rowevents/parser.rs:116:17
[INFO] [stdout]     |
[INFO] [stdout] 116 |             let data = self.stream.read(57);
[INFO] [stdout]     |                 ^^^^ help: if this is intentional, prefix it with an underscore: `_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `length_array`
[INFO] [stdout]    --> src/rowevents/parser.rs:119:13
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let length_array = self.stream.read(eh.get_event_len() - (57 + 19));
[INFO] [stdout]     |             ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_length_array`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eh`
[INFO] [stdout]    --> src/rowevents/parser.rs:123:38
[INFO] [stdout]     |
[INFO] [stdout] 123 |     pub fn read_xid_event(&mut self, eh: &EventHeader) -> Result<Event> {
[INFO] [stdout]     |                                      ^^ help: if this is intentional, prefix it with an underscore: `_eh`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `db_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:132:17
[INFO] [stdout]     |
[INFO] [stdout] 132 |         let mut db_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `table_name_len` is never read
[INFO] [stdout]    --> src/rowevents/parser.rs:133:17
[INFO] [stdout]     |
[INFO] [stdout] 133 |         let mut table_name_len = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:140:17
[INFO] [stdout]     |
[INFO] [stdout] 140 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:141:17
[INFO] [stdout]     |
[INFO] [stdout] 141 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:185:17
[INFO] [stdout]     |
[INFO] [stdout] 185 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:205:17
[INFO] [stdout]     |
[INFO] [stdout] 205 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `offset`
[INFO] [stdout]    --> src/rowevents/parser.rs:228:17
[INFO] [stdout]     |
[INFO] [stdout] 228 |             let offset = 0;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `table_id`
[INFO] [stdout]    --> src/rowevents/parser.rs:250:17
[INFO] [stdout]     |
[INFO] [stdout] 250 |             let table_id = get_table_id(i1 as i64, i2 as i64, i3 as i64);
[INFO] [stdout]     |                 ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_id`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `flags`
[INFO] [stdout]    --> src/rowevents/parser.rs:251:17
[INFO] [stdout]     |
[INFO] [stdout] 251 |             let flags = cursor.read_i16::<LittleEndian>()?;
[INFO] [stdout]     |                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_flags`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `extra_data`
[INFO] [stdout]    --> src/rowevents/parser.rs:262:17
[INFO] [stdout]     |
[INFO] [stdout] 262 |             let extra_data = self.stream.read(extra_data_len - 2);
[INFO] [stdout]     |                 ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_extra_data`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `slice_end`
[INFO] [stdout]    --> src/rowevents/parser.rs:354:17
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |                 ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_slice_end`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_len`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_len`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `nullable`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:39:36
[INFO] [stdout]    |
[INFO] [stdout] 39 | pub fn parse_field(field_type: u8, nullable: bool, metadata1: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]    |                                    ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nullable`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `metadata2`
[INFO] [stdout]  --> src/rowevents/descriptor_datetime.rs:8:42
[INFO] [stdout]   |
[INFO] [stdout] 8 | pub fn parse_datetime2(ms_precision: u8, metadata2: u8, data: &[u8]) -> Result<(ValueType, usize)> {
[INFO] [stdout]   |                                          ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_metadata2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:244:35
[INFO] [stdout]     |
[INFO] [stdout] 244 |                 &ValueType::Float(f) => {
[INFO] [stdout]     |                                   ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `f`
[INFO] [stdout]    --> src/lib.rs:250:36
[INFO] [stdout]     |
[INFO] [stdout] 250 |                 &ValueType::Double(f) => {
[INFO] [stdout]     |                                    ^ help: if this is intentional, prefix it with an underscore: `_f`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `d`
[INFO] [stdout]    --> src/lib.rs:256:41
[INFO] [stdout]     |
[INFO] [stdout] 256 |                 &ValueType::Decimal(ref d) => {
[INFO] [stdout]     |                                         ^ help: if this is intentional, prefix it with an underscore: `_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/lib.rs:262:40
[INFO] [stdout]     |
[INFO] [stdout] 262 |                 &ValueType::String(ref i) => {
[INFO] [stdout]     |                                        ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:281:67
[INFO] [stdout]     |
[INFO] [stdout] 281 | pub extern fn binlog_reader_read_table_map_event(ptr: *mut Event, info: *mut EventInfo, db_name: *mut u8, table_name: *mut u8) -> bool {
[INFO] [stdout]     |                                                                   ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:300:52
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:300:69
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:300:91
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ptr`
[INFO] [stdout]    --> src/lib.rs:306:52
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                    ^^^ help: if this is intentional, prefix it with an underscore: `_ptr`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `info`
[INFO] [stdout]    --> src/lib.rs:306:69
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_info`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `content`
[INFO] [stdout]    --> src/lib.rs:306:91
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                           ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/rowevents/parser.rs:354:13
[INFO] [stdout]     |
[INFO] [stdout] 354 |         let mut slice_end = 0;
[INFO] [stdout]     |             ----^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut result = File::open(filename);
[INFO] [stdout]    |             ----^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:35:19
[INFO] [stdout]    |
[INFO] [stdout] 35 |         if let Ok(mut file) = result {
[INFO] [stdout]    |                   ----^^^^
[INFO] [stdout]    |                   |
[INFO] [stdout]    |                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:51:17
[INFO] [stdout]    |
[INFO] [stdout] 51 |             let mut result = File::open(&next_binlog_filename);
[INFO] [stdout]    |                 ----^^^^^^
[INFO] [stdout]    |                 |
[INFO] [stdout]    |                 help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/rowevents/stream.rs:52:23
[INFO] [stdout]    |
[INFO] [stdout] 52 |             if let Ok(mut file) = result {
[INFO] [stdout]    |                       ----^^^^
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:49:9
[INFO] [stdout]    |
[INFO] [stdout] 49 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib.rs:95:9
[INFO] [stdout]    |
[INFO] [stdout] 95 |     let mut reader = unsafe {
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `filename` is never read
[INFO] [stdout]   --> src/rowevents/reader.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | pub struct Reader {
[INFO] [stdout]    |            ------ field in this struct
[INFO] [stdout] 12 |     filename: String,
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `xid` is never read
[INFO] [stdout]   --> src/rowevents/events.rs:48:5
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub struct XidEvent {
[INFO] [stdout]    |            -------- field in this struct
[INFO] [stdout] 48 |     xid: i64
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `XidEvent` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]   --> src/lib.rs:43:9
[INFO] [stdout]    |
[INFO] [stdout] 43 |         Box::from_raw(ptr);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 43 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:246:25
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 246 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:252:25
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 252 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:258:25
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 258 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `CString::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:264:25
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(from_raw(ptr))` if you intend to drop the `CString`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 264 |                         let _ = CString::from_raw(content[index].field_value as *mut c_char);
[INFO] [stdout]     |                         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:300:100
[INFO] [stdout]     |
[INFO] [stdout] 300 | pub extern fn binlog_reader_read_delete_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout]     = note: `#[warn(improper_ctypes_definitions)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `extern` fn uses type `[FieldInfo]`, which is not FFI-safe
[INFO] [stdout]    --> src/lib.rs:306:100
[INFO] [stdout]     |
[INFO] [stdout] 306 | pub extern fn binlog_reader_read_insert_event_rows(ptr: *mut Event, info: *mut EventInfo, content: &mut [FieldInfo]) -> bool {
[INFO] [stdout]     |                                                                                                    ^^^^^^^^^^^^^^^^ not FFI-safe
[INFO] [stdout]     |
[INFO] [stdout]     = help: consider using a raw pointer instead
[INFO] [stdout]     = note: slices have no C equivalent
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused return value of `Box::<T>::from_raw` that must be used
[INFO] [stdout]    --> src/lib.rs:381:9
[INFO] [stdout]     |
[INFO] [stdout] 381 |         Box::from_raw(ptr);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box`
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 381 |         let _ = Box::from_raw(ptr);
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:11:43
[INFO] [stdout]    |
[INFO] [stdout] 11 |     let max_len = metadata1 + metadata2 * 256;  // 
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout]    = note: `#[warn(overflowing_literals)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: literal out of range for `u8`
[INFO] [stdout]   --> src/rowevents/descriptor.rs:32:43
[INFO] [stdout]    |
[INFO] [stdout] 32 |     let max_len = metadata1 + metadata2 * 256;
[INFO] [stdout]    |                                           ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: the literal `256` does not fit into the type `u8` whose range is `0..=255`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 62 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "f62892dd4a3db37b47ce1b46850536c4d0f0d1f4a20ec106fb2eba0cd543471b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f62892dd4a3db37b47ce1b46850536c4d0f0d1f4a20ec106fb2eba0cd543471b", kill_on_drop: false }`
[INFO] [stdout] f62892dd4a3db37b47ce1b46850536c4d0f0d1f4a20ec106fb2eba0cd543471b
