>>> mcfly: Building community/mcfly 0.5.6-r0 (using abuild 3.8.0_rc3-r2) started Mon, 24 May 2021 15:51:39 +0000 >>> mcfly: Checking sanity of /home/buildozer/aports/community/mcfly/APKBUILD... >>> mcfly: Analyzing dependencies... >>> mcfly: Installing for build: build-base cargo sqlite-dev (1/14) Installing rust-stdlib (1.52.0-r0) (2/14) Installing libffi (3.3-r2) (3/14) Installing xz-libs (5.2.5-r0) (4/14) Installing libxml2 (2.9.12-r1) (5/14) Installing llvm11-libs (11.1.0-r2) (6/14) Installing http-parser (2.9.4-r0) (7/14) Installing pcre (8.44-r0) (8/14) Installing libssh2 (1.9.0-r1) (9/14) Installing libgit2 (1.1.0-r2) (10/14) Installing rust (1.52.0-r0) (11/14) Installing cargo (1.52.0-r0) (12/14) Installing sqlite-libs (3.35.5-r0) (13/14) Installing sqlite-dev (3.35.5-r0) (14/14) Installing .makedepends-mcfly (20210524.155142) Executing busybox-1.33.1-r1.trigger OK: 1015 MiB in 103 packages >>> mcfly: Cleaning up srcdir >>> mcfly: Cleaning up pkgdir >>> mcfly: Fetching https://distfiles.alpinelinux.org/distfiles/v3.14/mcfly-0.5.6.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 341 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> mcfly: Fetching https://github.com/cantino/mcfly/archive/v0.5.6/mcfly-0.5.6.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 121 100 121 0 0 510 0 --:--:-- --:--:-- --:--:-- 510 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 197k 0 197k 0 0 359k 0 --:--:-- --:--:-- --:--:-- 2083k >>> mcfly: Fetching https://distfiles.alpinelinux.org/distfiles/v3.14/mcfly-0.5.6.tar.gz >>> mcfly: Checking sha512sums... mcfly-0.5.6.tar.gz: OK unbundle-sqlite.patch: OK minimize-size.patch: OK use-xdg-dir.patch: OK >>> mcfly: Unpacking /var/cache/distfiles/v3.14/mcfly-0.5.6.tar.gz... >>> mcfly: unbundle-sqlite.patch patching file Cargo.toml patching file Cargo.lock >>> mcfly: minimize-size.patch patching file Cargo.toml >>> mcfly: use-xdg-dir.patch patching file src/settings.rs patching file src/history/history.rs Downloading crates ... Downloaded lru-cache v0.1.2 Downloaded regex-syntax v0.6.17 Downloaded regex v1.3.7 Downloaded ryu v1.0.4 Downloaded numtoa v0.1.0 Downloaded dirs-sys v0.3.4 Downloaded bstr v0.2.12 Downloaded dirs v2.0.2 Downloaded linked-hash-map v0.5.3 Downloaded termion v1.5.5 Downloaded aho-corasick v0.7.10 Downloaded shellexpand v2.0.0 Downloaded serde v1.0.106 Downloaded libsqlite3-sys v0.10.0 Downloaded rusqlite v0.15.0 Downloaded relative-path v1.0.0 Compiling libc v0.2.69 Compiling cfg-if v0.1.10 Compiling memchr v2.3.3 Compiling getrandom v0.1.14 Compiling byteorder v1.3.4 Compiling pkg-config v0.3.17 Compiling bitflags v1.2.1 Compiling lazy_static v1.4.0 Compiling serde v1.0.106 Compiling ryu v1.0.4 Compiling unicode-width v0.1.7 Compiling linked-hash-map v0.5.3 Compiling ppv-lite86 v0.2.6 Compiling itoa v0.4.5 Compiling numtoa v0.1.0 Compiling regex-syntax v0.6.17 Compiling strsim v0.8.0 Compiling ansi_term v0.11.0 Compiling either v1.6.1 Compiling vec_map v0.8.2 Compiling relative-path v1.0.0 Compiling unicode-segmentation v1.6.0 Compiling textwrap v0.11.0 Compiling thread_local v1.0.1 Compiling itertools v0.9.0 Compiling lru-cache v0.1.2 Compiling csv-core v0.1.10 Compiling aho-corasick v0.7.10 Compiling regex-automata v0.1.9 Compiling libsqlite3-sys v0.10.0 Compiling dirs-sys v0.3.4 Compiling atty v0.2.14 Compiling time v0.1.43 Compiling termion v1.5.5 Compiling clap v2.33.0 Compiling rand_core v0.5.1 Compiling dirs v2.0.2 Compiling shellexpand v2.0.0 Compiling rusqlite v0.15.0 Compiling rand_chacha v0.2.2 Compiling rand v0.7.3 Compiling regex v1.3.7 Compiling bstr v0.2.12 Compiling csv v1.1.3 Compiling mcfly v0.5.6 (/home/buildozer/aports/community/mcfly/src/mcfly-0.5.6) warning: panic message is not a string literal --> src/history/db_extensions.rs:35:16 | 35 | panic!(format!( | ________________^ 36 | | "McFly error: Successful create_scalar_function ({})", 37 | | err 38 | | )) | |_________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 35 | panic!( 36 | "McFly error: Successful create_scalar_function ({})", 37 | err 38 | ) | warning: panic message is not a string literal --> src/history/history.rs:139:70 | 139 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 139 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:157:24 | 157 | panic!(format!( | ________________________^ 158 | | "McFly error: DELETE from selected_commands to work ({})", 159 | | err 160 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 157 | panic!( 158 | "McFly error: DELETE from selected_commands to work ({})", 159 | err 160 | ) | warning: panic message is not a string literal --> src/history/history.rs:170:24 | 170 | panic!(format!( | ________________________^ 171 | | "McFly error: DELETE from selected_commands to work ({})", 172 | | err 173 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 170 | panic!( 171 | "McFly error: DELETE from selected_commands to work ({})", 172 | err 173 | ) | warning: panic message is not a string literal --> src/history/history.rs:185:70 | 185 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into selected_commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 185 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into selected_commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:257:42 | 257 | .unwrap_or_else(|err| panic!(format!("McFly error: Prepare to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 257 | .unwrap_or_else(|err| panic!("McFly error: Prepare to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:261:28 | 261 | panic!(format!("McFly error: cmd to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!("McFly error: cmd to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:296:32 | 296 | panic!(format!("McFly error: id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 296 | panic!("McFly error: id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:300:32 | 300 | panic!(format!("McFly error: cmd_tpl to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 300 | panic!("McFly error: cmd_tpl to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:303:32 | 303 | panic!(format!("McFly error: session_id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 303 | panic!("McFly error: session_id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:306:32 | 306 | panic!(format!("McFly error: when_run to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 306 | panic!("McFly error: when_run to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:309:32 | 309 | panic!(format!("McFly error: exit_code to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 309 | panic!("McFly error: exit_code to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:312:32 | 312 | panic!(format!("McFly error: selected to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 312 | panic!("McFly error: selected to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:315:32 | 315 | panic!(format!("McFly error: dir to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 315 | panic!("McFly error: dir to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:318:32 | 318 | panic!(format!("McFly error: rank to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 318 | panic!("McFly error: rank to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:323:36 | 323 | ... panic!(format!("McFly error: age_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 323 | panic!("McFly error: age_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:326:36 | 326 | ... panic!(format!( | ______________________________^ 327 | | ... "McFly error: length_factor to be readable ({})", 328 | | ... err 329 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 326 | panic!( 327 | "McFly error: length_factor to be readable ({})", 328 | err 329 | ) | warning: panic message is not a string literal --> src/history/history.rs:332:36 | 332 | ... panic!(format!("McFly error: exit_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 332 | panic!("McFly error: exit_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:335:36 | 335 | ... panic!(format!( | ______________________________^ 336 | | ... "McFly error: recent_failure_factor to be readable ({})", 337 | | ... err 338 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 335 | panic!( 336 | "McFly error: recent_failure_factor to be readable ({})", 337 | err 338 | ) | warning: panic message is not a string literal --> src/history/history.rs:341:36 | 341 | ... panic!(format!( | ______________________________^ 342 | | ... "McFly error: selected_dir_factor to be readable ({})", 343 | | ... err 344 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 341 | panic!( 342 | "McFly error: selected_dir_factor to be readable ({})", 343 | err 344 | ) | warning: panic message is not a string literal --> src/history/history.rs:347:36 | 347 | ... panic!(format!("McFly error: dir_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 347 | panic!("McFly error: dir_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:350:36 | 350 | ... panic!(format!( | ______________________________^ 351 | | ... "McFly error: overlap_factor to be readable ({})", 352 | | ... err 353 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 350 | panic!( 351 | "McFly error: overlap_factor to be readable ({})", 352 | err 353 | ) | warning: panic message is not a string literal --> src/history/history.rs:356:36 | 356 | ... panic!(format!( | ______________________________^ 357 | | ... "McFly error: immediate_overlap_factor to be readable ({})", 358 | | ... err 359 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 356 | panic!( 357 | "McFly error: immediate_overlap_factor to be readable ({})", 358 | err 359 | ) | warning: panic message is not a string literal --> src/history/history.rs:362:36 | 362 | ... panic!(format!( | ______________________________^ 363 | | ... "McFly error: selected_occurrences_factor to be readable ({})", 364 | | ... err 365 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 362 | panic!( 363 | "McFly error: selected_occurrences_factor to be readable ({})", 364 | err 365 | ) | warning: panic message is not a string literal --> src/history/history.rs:368:36 | 368 | ... panic!(format!( | ______________________________^ 369 | | ... "McFly error: occurrences_factor to be readable ({})", 370 | | ... err 371 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 368 | panic!( 369 | "McFly error: occurrences_factor to be readable ({})", 370 | err 371 | ) | warning: panic message is not a string literal --> src/history/history.rs:376:42 | 376 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 376 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:381:24 | 381 | panic!(format!( | ________________________^ 382 | | "McFly error: Unable to load command from DB ({})", 383 | | err 384 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 381 | panic!( 382 | "McFly error: Unable to load command from DB ({})", 383 | err 384 | ) | warning: panic message is not a string literal --> src/history/history.rs:442:24 | 442 | panic!(format!( | ________________________^ 443 | | "McFly error: Removal of temp table to work ({})", 444 | | err 445 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 442 | panic!( 443 | "McFly error: Removal of temp table to work ({})", 444 | err 445 | ) | warning: panic message is not a string literal --> src/history/history.rs:455:42 | 455 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 455 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:556:124 | 556 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 556 | (":end_time", &end_time.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:557:114 | 557 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 557 | (":now", &now.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:559:44 | 559 | ]).unwrap_or_else(|err| panic!(format!("McFly error: Creation of temp table to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 559 | ]).unwrap_or_else(|err| panic!("McFly error: Creation of temp table to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:571:24 | 571 | panic!(format!( | ________________________^ 572 | | "McFly error: Ranking of temp table to work ({})", 573 | | err 574 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 571 | panic!( 572 | "McFly error: Ranking of temp table to work ({})", 573 | err 574 | ) | warning: panic message is not a string literal --> src/history/history.rs:583:24 | 583 | panic!(format!( | ________________________^ 584 | | "McFly error: Creation of index on temp table to work ({})", 585 | | err 586 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 583 | panic!( 584 | "McFly error: Creation of index on temp table to work ({})", 585 | err 586 | ) | warning: panic message is not a string literal --> src/history/history.rs:637:42 | 637 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 637 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:672:24 | 672 | panic!(format!( | ________________________^ 673 | | "McFly error: DELETE from selected_commands to work ({})", 674 | | err 675 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 672 | panic!( 673 | "McFly error: DELETE from selected_commands to work ({})", 674 | err 675 | ) | warning: panic message is not a string literal --> src/history/history.rs:684:24 | 684 | panic!(format!( | ________________________^ 685 | | "McFly error: DELETE from commands to work ({})", 686 | | err 687 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 684 | panic!( 685 | "McFly error: DELETE from commands to work ({})", 686 | err 687 | ) | warning: panic message is not a string literal --> src/history/history.rs:713:46 | 713 | .unwrap_or_else(|err| panic!(format!("McFly error: dir UPDATE to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 713 | .unwrap_or_else(|err| panic!("McFly error: dir UPDATE to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:723:28 | 723 | panic!(format!("McFly error: old_dir UPDATE to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 723 | panic!("McFly error: old_dir UPDATE to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:742:20 | 742 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 742 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:785:39 | 785 | ).unwrap_or_else(|err| panic!(format!("McFly error: Unable to initialize history db ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 785 | ).unwrap_or_else(|err| panic!("McFly error: Unable to initialize history db ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:790:46 | 790 | .unwrap_or_else(|err| panic!(format!("McFly error: Unable to prepare insert ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 790 | .unwrap_or_else(|err| panic!("McFly error: Unable to prepare insert ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:805:40 | 805 | ... panic!(format!("McFly error: Insert to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 805 | panic!("McFly error: Insert to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:824:20 | 824 | panic!(format!( | ____________________^ 825 | | "McFly error: Unable to open history database ({})", 826 | | err 827 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 824 | panic!( 825 | "McFly error: Unable to open history database ({})", 826 | err 827 | ) | warning: panic message is not a string literal --> src/history/schema.rs:22:38 | 22 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 22 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:31:20 | 31 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 31 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:41:24 | 41 | panic!(format!( | ________________________^ 42 | | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | | err 44 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 41 | panic!( 42 | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | err 44 | ) | warning: panic message is not a string literal --> src/history/schema.rs:50:24 | 50 | panic!(format!("McFly error: Unable to prepare update ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 50 | panic!("McFly error: Unable to prepare update ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:57:46 | 57 | .unwrap_or_else(|err| panic!(format!("McFly error: Insert to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 57 | .unwrap_or_else(|err| panic!("McFly error: Insert to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/schema.rs:69:24 | 69 | panic!(format!( | ________________________^ 70 | | "McFly error: Unable to add session_id to commands ({})", 71 | | err 72 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 69 | panic!( 70 | "McFly error: Unable to add session_id to commands ({})", 71 | err 72 | ) | warning: panic message is not a string literal --> src/history/schema.rs:91:24 | 91 | panic!(format!( | ________________________^ 92 | | "McFly error: Unable to add selected_commands ({})", 93 | | err 94 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 91 | panic!( 92 | "McFly error: Unable to add selected_commands ({})", 93 | err 94 | ) | warning: panic message is not a string literal --> src/history/schema.rs:115:20 | 115 | panic!(format!( | ____________________^ 116 | | "McFly error: Unable to create schema_versions db table ({})", 117 | | err 118 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 115 | panic!( 116 | "McFly error: Unable to create schema_versions db table ({})", 117 | err 118 | ) | warning: panic message is not a string literal --> src/history/schema.rs:128:16 | 128 | panic!(format!( | ________________^ 129 | | "McFly error: Unable to update schema_versions ({})", 130 | | err 131 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 128 | panic!( 129 | "McFly error: Unable to update schema_versions ({})", 130 | err 131 | ) | warning: panic message is not a string literal --> src/history/schema.rs:140:38 | 140 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 140 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history_cleaner.rs:20:24 | 20 | panic!(format!( | ________________________^ 21 | | "McFly error: Please ensure that HISTFILE is set ({})", 22 | | err 23 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 20 | panic!( 21 | "McFly error: Please ensure that HISTFILE is set ({})", 22 | err 23 | ) | warning: panic message is not a string literal --> src/history_cleaner.rs:39:20 | 39 | panic!(format!( | ____________________^ 40 | | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | | err 42 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 39 | panic!( 40 | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | err 42 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:8:16 | 8 | panic!(format!( | ________________^ 9 | | "McFly error: Unable to expand command path ({})", 10 | | err 11 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 8 | panic!( 9 | "McFly error: Unable to expand command path ({})", 10 | err 11 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:15:16 | 15 | panic!(format!( | ________________^ 16 | | "McFly error: Unable to determine current directory ({})", 17 | | err 18 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 15 | panic!( 16 | "McFly error: Unable to determine current directory ({})", 17 | err 18 | ) | warning: panic message is not a string literal --> src/settings.rs:246:36 | 246 | ... panic!(format!( | ______________________________^ 247 | | ... "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | | ... err)) | |__________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 246 | panic!( 247 | "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | err) | warning: panic message is not a string literal --> src/settings.rs:261:36 | 261 | ... panic!(format!( | ______________________________^ 262 | | ... "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | | ... err 264 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!( 262 | "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | err 264 | ) | warning: panic message is not a string literal --> src/settings.rs:290:40 | 290 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 290 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/settings.rs:313:32 | 313 | panic!(format!( | ________________________________^ 314 | | "McFly error: Unable to determine current directory ({})", 315 | | err 316 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 313 | panic!( 314 | "McFly error: Unable to determine current directory ({})", 315 | err 316 | ) | warning: panic message is not a string literal --> src/settings.rs:351:32 | 351 | panic!(format!( | ________________________________^ 352 | | "McFly error: Unable to determine current directory ({})", 353 | | err 354 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 351 | panic!( 352 | "McFly error: Unable to determine current directory ({})", 353 | err 354 | ) | warning: panic message is not a string literal --> src/shell_history.rs:42:16 | 42 | panic!(format!( | ________________^ 43 | | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | | err 45 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 42 | panic!( 43 | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | err 45 | ) | warning: panic message is not a string literal --> src/shell_history.rs:48:16 | 48 | panic!(format!( | ________________^ 49 | | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | | err 51 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 48 | panic!( 49 | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | err 51 | ) | warning: panic message is not a string literal --> src/shell_history.rs:214:20 | 214 | panic!(format!( | ____________________^ 215 | | "McFly error: please make sure HISTFILE exists ({})", 216 | | err 217 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 214 | panic!( 215 | "McFly error: please make sure HISTFILE exists ({})", 216 | err 217 | ) | warning: panic message is not a string literal --> src/training_cache.rs:9:16 | 9 | panic!(format!( | ________________^ 10 | | "McFly error: Expected to be able to write a CSV ({})", 11 | | err 12 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 9 | panic!( 10 | "McFly error: Expected to be able to write a CSV ({})", 11 | err 12 | ) | warning: panic message is not a string literal --> src/training_cache.rs:25:16 | 25 | panic!(format!( | ________________^ 26 | | "McFly error: Expected to be able to read from CSV ({})", 27 | | err 28 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 25 | panic!( 26 | "McFly error: Expected to be able to read from CSV ({})", 27 | err 28 | ) | warning: panic message is not a string literal --> src/training_cache.rs:33:20 | 33 | panic!(format!( | ____________________^ 34 | | "McFly error: Expected to be able to unwrap cached result ({})", 35 | | err 36 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 33 | panic!( 34 | "McFly error: Expected to be able to unwrap cached result ({})", 35 | err 36 | ) | warning: panic message is not a string literal --> src/training_cache.rs:73:38 | 73 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 73 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:76:38 | 76 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 76 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:98:38 | 98 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 98 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:101:38 | 101 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 101 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:106:17 | 106 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:120:17 | 120 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:134:17 | 134 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:149:17 | 149 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:166:17 | 166 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:186:17 | 186 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:211:9 | 211 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: 80 warnings emitted warning: panic message is not a string literal --> src/main.rs:27:24 | 27 | panic!(format!( | ________________________^ 28 | | "McFly error: Please ensure that HISTFILE is set ({})", 29 | | err 30 | | )) | |_________________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 27 | panic!( 28 | "McFly error: Please ensure that HISTFILE is set ({})", 29 | err 30 | ) | warning: panic message is not a string literal --> src/main.rs:38:36 | 38 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 38 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/main.rs:79:24 | 79 | panic!(format!("McFly error: unable to write to {}: {}", path, err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 79 | panic!("McFly error: unable to write to {}: {}", path, err) | -- -- warning: 3 warnings emitted Finished release [optimized] target(s) in 58.68s Compiling cfg-if v0.1.10 Compiling lazy_static v1.4.0 Compiling ppv-lite86 v0.2.6 Compiling unicode-width v0.1.7 Compiling linked-hash-map v0.5.3 Compiling strsim v0.8.0 Compiling itoa v0.4.5 Compiling either v1.6.1 Compiling vec_map v0.8.2 Compiling numtoa v0.1.0 Compiling regex-syntax v0.6.17 Compiling ansi_term v0.11.0 Compiling relative-path v1.0.0 Compiling unicode-segmentation v1.6.0 Compiling libc v0.2.69 Compiling memchr v2.3.3 Compiling byteorder v1.3.4 Compiling serde v1.0.106 Compiling bitflags v1.2.1 Compiling ryu v1.0.4 Compiling libsqlite3-sys v0.10.0 Compiling thread_local v1.0.1 Compiling textwrap v0.11.0 Compiling itertools v0.9.0 Compiling lru-cache v0.1.2 Compiling csv-core v0.1.10 Compiling aho-corasick v0.7.10 Compiling regex-automata v0.1.9 Compiling getrandom v0.1.14 Compiling dirs-sys v0.3.4 Compiling atty v0.2.14 Compiling time v0.1.43 Compiling termion v1.5.5 Compiling clap v2.33.0 Compiling rand_core v0.5.1 Compiling dirs v2.0.2 Compiling shellexpand v2.0.0 Compiling rand_chacha v0.2.2 Compiling rusqlite v0.15.0 Compiling rand v0.7.3 Compiling regex v1.3.7 Compiling bstr v0.2.12 Compiling csv v1.1.3 Compiling mcfly v0.5.6 (/home/buildozer/aports/community/mcfly/src/mcfly-0.5.6) warning: panic message is not a string literal --> src/history/db_extensions.rs:35:16 | 35 | panic!(format!( | ________________^ 36 | | "McFly error: Successful create_scalar_function ({})", 37 | | err 38 | | )) | |_________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 35 | panic!( 36 | "McFly error: Successful create_scalar_function ({})", 37 | err 38 | ) | warning: panic message is not a string literal --> src/history/history.rs:139:70 | 139 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 139 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:157:24 | 157 | panic!(format!( | ________________________^ 158 | | "McFly error: DELETE from selected_commands to work ({})", 159 | | err 160 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 157 | panic!( 158 | "McFly error: DELETE from selected_commands to work ({})", 159 | err 160 | ) | warning: panic message is not a string literal --> src/history/history.rs:170:24 | 170 | panic!(format!( | ________________________^ 171 | | "McFly error: DELETE from selected_commands to work ({})", 172 | | err 173 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 170 | panic!( 171 | "McFly error: DELETE from selected_commands to work ({})", 172 | err 173 | ) | warning: panic message is not a string literal --> src/history/history.rs:185:70 | 185 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into selected_commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 185 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into selected_commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:257:42 | 257 | .unwrap_or_else(|err| panic!(format!("McFly error: Prepare to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 257 | .unwrap_or_else(|err| panic!("McFly error: Prepare to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:261:28 | 261 | panic!(format!("McFly error: cmd to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!("McFly error: cmd to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:296:32 | 296 | panic!(format!("McFly error: id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 296 | panic!("McFly error: id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:300:32 | 300 | panic!(format!("McFly error: cmd_tpl to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 300 | panic!("McFly error: cmd_tpl to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:303:32 | 303 | panic!(format!("McFly error: session_id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 303 | panic!("McFly error: session_id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:306:32 | 306 | panic!(format!("McFly error: when_run to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 306 | panic!("McFly error: when_run to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:309:32 | 309 | panic!(format!("McFly error: exit_code to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 309 | panic!("McFly error: exit_code to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:312:32 | 312 | panic!(format!("McFly error: selected to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 312 | panic!("McFly error: selected to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:315:32 | 315 | panic!(format!("McFly error: dir to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 315 | panic!("McFly error: dir to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:318:32 | 318 | panic!(format!("McFly error: rank to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 318 | panic!("McFly error: rank to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:323:36 | 323 | ... panic!(format!("McFly error: age_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 323 | panic!("McFly error: age_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:326:36 | 326 | ... panic!(format!( | ______________________________^ 327 | | ... "McFly error: length_factor to be readable ({})", 328 | | ... err 329 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 326 | panic!( 327 | "McFly error: length_factor to be readable ({})", 328 | err 329 | ) | warning: panic message is not a string literal --> src/history/history.rs:332:36 | 332 | ... panic!(format!("McFly error: exit_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 332 | panic!("McFly error: exit_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:335:36 | 335 | ... panic!(format!( | ______________________________^ 336 | | ... "McFly error: recent_failure_factor to be readable ({})", 337 | | ... err 338 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 335 | panic!( 336 | "McFly error: recent_failure_factor to be readable ({})", 337 | err 338 | ) | warning: panic message is not a string literal --> src/history/history.rs:341:36 | 341 | ... panic!(format!( | ______________________________^ 342 | | ... "McFly error: selected_dir_factor to be readable ({})", 343 | | ... err 344 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 341 | panic!( 342 | "McFly error: selected_dir_factor to be readable ({})", 343 | err 344 | ) | warning: panic message is not a string literal --> src/history/history.rs:347:36 | 347 | ... panic!(format!("McFly error: dir_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 347 | panic!("McFly error: dir_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:350:36 | 350 | ... panic!(format!( | ______________________________^ 351 | | ... "McFly error: overlap_factor to be readable ({})", 352 | | ... err 353 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 350 | panic!( 351 | "McFly error: overlap_factor to be readable ({})", 352 | err 353 | ) | warning: panic message is not a string literal --> src/history/history.rs:356:36 | 356 | ... panic!(format!( | ______________________________^ 357 | | ... "McFly error: immediate_overlap_factor to be readable ({})", 358 | | ... err 359 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 356 | panic!( 357 | "McFly error: immediate_overlap_factor to be readable ({})", 358 | err 359 | ) | warning: panic message is not a string literal --> src/history/history.rs:362:36 | 362 | ... panic!(format!( | ______________________________^ 363 | | ... "McFly error: selected_occurrences_factor to be readable ({})", 364 | | ... err 365 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 362 | panic!( 363 | "McFly error: selected_occurrences_factor to be readable ({})", 364 | err 365 | ) | warning: panic message is not a string literal --> src/history/history.rs:368:36 | 368 | ... panic!(format!( | ______________________________^ 369 | | ... "McFly error: occurrences_factor to be readable ({})", 370 | | ... err 371 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 368 | panic!( 369 | "McFly error: occurrences_factor to be readable ({})", 370 | err 371 | ) | warning: panic message is not a string literal --> src/history/history.rs:376:42 | 376 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 376 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:381:24 | 381 | panic!(format!( | ________________________^ 382 | | "McFly error: Unable to load command from DB ({})", 383 | | err 384 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 381 | panic!( 382 | "McFly error: Unable to load command from DB ({})", 383 | err 384 | ) | warning: panic message is not a string literal --> src/history/history.rs:442:24 | 442 | panic!(format!( | ________________________^ 443 | | "McFly error: Removal of temp table to work ({})", 444 | | err 445 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 442 | panic!( 443 | "McFly error: Removal of temp table to work ({})", 444 | err 445 | ) | warning: panic message is not a string literal --> src/history/history.rs:455:42 | 455 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 455 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:556:124 | 556 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 556 | (":end_time", &end_time.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:557:114 | 557 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 557 | (":now", &now.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:559:44 | 559 | ]).unwrap_or_else(|err| panic!(format!("McFly error: Creation of temp table to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 559 | ]).unwrap_or_else(|err| panic!("McFly error: Creation of temp table to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:571:24 | 571 | panic!(format!( | ________________________^ 572 | | "McFly error: Ranking of temp table to work ({})", 573 | | err 574 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 571 | panic!( 572 | "McFly error: Ranking of temp table to work ({})", 573 | err 574 | ) | warning: panic message is not a string literal --> src/history/history.rs:583:24 | 583 | panic!(format!( | ________________________^ 584 | | "McFly error: Creation of index on temp table to work ({})", 585 | | err 586 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 583 | panic!( 584 | "McFly error: Creation of index on temp table to work ({})", 585 | err 586 | ) | warning: panic message is not a string literal --> src/history/history.rs:637:42 | 637 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 637 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:672:24 | 672 | panic!(format!( | ________________________^ 673 | | "McFly error: DELETE from selected_commands to work ({})", 674 | | err 675 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 672 | panic!( 673 | "McFly error: DELETE from selected_commands to work ({})", 674 | err 675 | ) | warning: panic message is not a string literal --> src/history/history.rs:684:24 | 684 | panic!(format!( | ________________________^ 685 | | "McFly error: DELETE from commands to work ({})", 686 | | err 687 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 684 | panic!( 685 | "McFly error: DELETE from commands to work ({})", 686 | err 687 | ) | warning: panic message is not a string literal --> src/history/history.rs:713:46 | 713 | .unwrap_or_else(|err| panic!(format!("McFly error: dir UPDATE to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 713 | .unwrap_or_else(|err| panic!("McFly error: dir UPDATE to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:723:28 | 723 | panic!(format!("McFly error: old_dir UPDATE to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 723 | panic!("McFly error: old_dir UPDATE to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:742:20 | 742 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 742 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:785:39 | 785 | ).unwrap_or_else(|err| panic!(format!("McFly error: Unable to initialize history db ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 785 | ).unwrap_or_else(|err| panic!("McFly error: Unable to initialize history db ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:790:46 | 790 | .unwrap_or_else(|err| panic!(format!("McFly error: Unable to prepare insert ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 790 | .unwrap_or_else(|err| panic!("McFly error: Unable to prepare insert ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:805:40 | 805 | ... panic!(format!("McFly error: Insert to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 805 | panic!("McFly error: Insert to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:824:20 | 824 | panic!(format!( | ____________________^ 825 | | "McFly error: Unable to open history database ({})", 826 | | err 827 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 824 | panic!( 825 | "McFly error: Unable to open history database ({})", 826 | err 827 | ) | warning: panic message is not a string literal --> src/history/schema.rs:22:38 | 22 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 22 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:31:20 | 31 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 31 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:41:24 | 41 | panic!(format!( | ________________________^ 42 | | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | | err 44 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 41 | panic!( 42 | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | err 44 | ) | warning: panic message is not a string literal --> src/history/schema.rs:50:24 | 50 | panic!(format!("McFly error: Unable to prepare update ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 50 | panic!("McFly error: Unable to prepare update ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:57:46 | 57 | .unwrap_or_else(|err| panic!(format!("McFly error: Insert to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 57 | .unwrap_or_else(|err| panic!("McFly error: Insert to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/schema.rs:69:24 | 69 | panic!(format!( | ________________________^ 70 | | "McFly error: Unable to add session_id to commands ({})", 71 | | err 72 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 69 | panic!( 70 | "McFly error: Unable to add session_id to commands ({})", 71 | err 72 | ) | warning: panic message is not a string literal --> src/history/schema.rs:91:24 | 91 | panic!(format!( | ________________________^ 92 | | "McFly error: Unable to add selected_commands ({})", 93 | | err 94 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 91 | panic!( 92 | "McFly error: Unable to add selected_commands ({})", 93 | err 94 | ) | warning: panic message is not a string literal --> src/history/schema.rs:115:20 | 115 | panic!(format!( | ____________________^ 116 | | "McFly error: Unable to create schema_versions db table ({})", 117 | | err 118 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 115 | panic!( 116 | "McFly error: Unable to create schema_versions db table ({})", 117 | err 118 | ) | warning: panic message is not a string literal --> src/history/schema.rs:128:16 | 128 | panic!(format!( | ________________^ 129 | | "McFly error: Unable to update schema_versions ({})", 130 | | err 131 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 128 | panic!( 129 | "McFly error: Unable to update schema_versions ({})", 130 | err 131 | ) | warning: panic message is not a string literal --> src/history/schema.rs:140:38 | 140 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 140 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history_cleaner.rs:20:24 | 20 | panic!(format!( | ________________________^ 21 | | "McFly error: Please ensure that HISTFILE is set ({})", 22 | | err 23 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 20 | panic!( 21 | "McFly error: Please ensure that HISTFILE is set ({})", 22 | err 23 | ) | warning: panic message is not a string literal --> src/history_cleaner.rs:39:20 | 39 | panic!(format!( | ____________________^ 40 | | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | | err 42 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 39 | panic!( 40 | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | err 42 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:8:16 | 8 | panic!(format!( | ________________^ 9 | | "McFly error: Unable to expand command path ({})", 10 | | err 11 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 8 | panic!( 9 | "McFly error: Unable to expand command path ({})", 10 | err 11 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:15:16 | 15 | panic!(format!( | ________________^ 16 | | "McFly error: Unable to determine current directory ({})", 17 | | err 18 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 15 | panic!( 16 | "McFly error: Unable to determine current directory ({})", 17 | err 18 | ) | warning: panic message is not a string literal --> src/settings.rs:246:36 | 246 | ... panic!(format!( | ______________________________^ 247 | | ... "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | | ... err)) | |__________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 246 | panic!( 247 | "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | err) | warning: panic message is not a string literal --> src/settings.rs:261:36 | 261 | ... panic!(format!( | ______________________________^ 262 | | ... "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | | ... err 264 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!( 262 | "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | err 264 | ) | warning: panic message is not a string literal --> src/settings.rs:290:40 | 290 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 290 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/settings.rs:313:32 | 313 | panic!(format!( | ________________________________^ 314 | | "McFly error: Unable to determine current directory ({})", 315 | | err 316 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 313 | panic!( 314 | "McFly error: Unable to determine current directory ({})", 315 | err 316 | ) | warning: panic message is not a string literal --> src/settings.rs:351:32 | 351 | panic!(format!( | ________________________________^ 352 | | "McFly error: Unable to determine current directory ({})", 353 | | err 354 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 351 | panic!( 352 | "McFly error: Unable to determine current directory ({})", 353 | err 354 | ) | warning: panic message is not a string literal --> src/shell_history.rs:42:16 | 42 | panic!(format!( | ________________^ 43 | | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | | err 45 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 42 | panic!( 43 | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | err 45 | ) | warning: panic message is not a string literal --> src/shell_history.rs:48:16 | 48 | panic!(format!( | ________________^ 49 | | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | | err 51 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 48 | panic!( 49 | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | err 51 | ) | warning: panic message is not a string literal --> src/shell_history.rs:214:20 | 214 | panic!(format!( | ____________________^ 215 | | "McFly error: please make sure HISTFILE exists ({})", 216 | | err 217 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 214 | panic!( 215 | "McFly error: please make sure HISTFILE exists ({})", 216 | err 217 | ) | warning: panic message is not a string literal --> src/training_cache.rs:9:16 | 9 | panic!(format!( | ________________^ 10 | | "McFly error: Expected to be able to write a CSV ({})", 11 | | err 12 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 9 | panic!( 10 | "McFly error: Expected to be able to write a CSV ({})", 11 | err 12 | ) | warning: panic message is not a string literal --> src/training_cache.rs:25:16 | 25 | panic!(format!( | ________________^ 26 | | "McFly error: Expected to be able to read from CSV ({})", 27 | | err 28 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 25 | panic!( 26 | "McFly error: Expected to be able to read from CSV ({})", 27 | err 28 | ) | warning: panic message is not a string literal --> src/training_cache.rs:33:20 | 33 | panic!(format!( | ____________________^ 34 | | "McFly error: Expected to be able to unwrap cached result ({})", 35 | | err 36 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 33 | panic!( 34 | "McFly error: Expected to be able to unwrap cached result ({})", 35 | err 36 | ) | warning: panic message is not a string literal --> src/training_cache.rs:73:38 | 73 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 73 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:76:38 | 76 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 76 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:98:38 | 98 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 98 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:101:38 | 101 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 101 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:106:17 | 106 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:120:17 | 120 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:134:17 | 134 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:149:17 | 149 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:166:17 | 166 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:186:17 | 186 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:211:9 | 211 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: 80 warnings emitted warning: panic message is not a string literal --> src/main.rs:27:24 | 27 | panic!(format!( | ________________________^ 28 | | "McFly error: Please ensure that HISTFILE is set ({})", 29 | | err 30 | | )) | |_________________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 27 | panic!( 28 | "McFly error: Please ensure that HISTFILE is set ({})", 29 | err 30 | ) | warning: panic message is not a string literal --> src/main.rs:38:36 | 38 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 38 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/main.rs:79:24 | 79 | panic!(format!("McFly error: unable to write to {}: {}", path, err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 79 | panic!("McFly error: unable to write to {}: {}", path, err) | -- -- warning: 3 warnings emitted warning: panic message is not a string literal --> src/history/db_extensions.rs:35:16 | 35 | panic!(format!( | ________________^ 36 | | "McFly error: Successful create_scalar_function ({})", 37 | | err 38 | | )) | |_________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 35 | panic!( 36 | "McFly error: Successful create_scalar_function ({})", 37 | err 38 | ) | warning: panic message is not a string literal --> src/history/history.rs:139:70 | 139 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 139 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:157:24 | 157 | panic!(format!( | ________________________^ 158 | | "McFly error: DELETE from selected_commands to work ({})", 159 | | err 160 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 157 | panic!( 158 | "McFly error: DELETE from selected_commands to work ({})", 159 | err 160 | ) | warning: panic message is not a string literal --> src/history/history.rs:170:24 | 170 | panic!(format!( | ________________________^ 171 | | "McFly error: DELETE from selected_commands to work ({})", 172 | | err 173 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 170 | panic!( 171 | "McFly error: DELETE from selected_commands to work ({})", 172 | err 173 | ) | warning: panic message is not a string literal --> src/history/history.rs:185:70 | 185 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into selected_commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 185 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into selected_commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:257:42 | 257 | .unwrap_or_else(|err| panic!(format!("McFly error: Prepare to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 257 | .unwrap_or_else(|err| panic!("McFly error: Prepare to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:261:28 | 261 | panic!(format!("McFly error: cmd to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!("McFly error: cmd to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:296:32 | 296 | panic!(format!("McFly error: id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 296 | panic!("McFly error: id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:300:32 | 300 | panic!(format!("McFly error: cmd_tpl to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 300 | panic!("McFly error: cmd_tpl to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:303:32 | 303 | panic!(format!("McFly error: session_id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 303 | panic!("McFly error: session_id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:306:32 | 306 | panic!(format!("McFly error: when_run to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 306 | panic!("McFly error: when_run to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:309:32 | 309 | panic!(format!("McFly error: exit_code to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 309 | panic!("McFly error: exit_code to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:312:32 | 312 | panic!(format!("McFly error: selected to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 312 | panic!("McFly error: selected to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:315:32 | 315 | panic!(format!("McFly error: dir to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 315 | panic!("McFly error: dir to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:318:32 | 318 | panic!(format!("McFly error: rank to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 318 | panic!("McFly error: rank to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:323:36 | 323 | ... panic!(format!("McFly error: age_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 323 | panic!("McFly error: age_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:326:36 | 326 | ... panic!(format!( | ______________________________^ 327 | | ... "McFly error: length_factor to be readable ({})", 328 | | ... err 329 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 326 | panic!( 327 | "McFly error: length_factor to be readable ({})", 328 | err 329 | ) | warning: panic message is not a string literal --> src/history/history.rs:332:36 | 332 | ... panic!(format!("McFly error: exit_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 332 | panic!("McFly error: exit_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:335:36 | 335 | ... panic!(format!( | ______________________________^ 336 | | ... "McFly error: recent_failure_factor to be readable ({})", 337 | | ... err 338 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 335 | panic!( 336 | "McFly error: recent_failure_factor to be readable ({})", 337 | err 338 | ) | warning: panic message is not a string literal --> src/history/history.rs:341:36 | 341 | ... panic!(format!( | ______________________________^ 342 | | ... "McFly error: selected_dir_factor to be readable ({})", 343 | | ... err 344 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 341 | panic!( 342 | "McFly error: selected_dir_factor to be readable ({})", 343 | err 344 | ) | warning: panic message is not a string literal --> src/history/history.rs:347:36 | 347 | ... panic!(format!("McFly error: dir_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 347 | panic!("McFly error: dir_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:350:36 | 350 | ... panic!(format!( | ______________________________^ 351 | | ... "McFly error: overlap_factor to be readable ({})", 352 | | ... err 353 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 350 | panic!( 351 | "McFly error: overlap_factor to be readable ({})", 352 | err 353 | ) | warning: panic message is not a string literal --> src/history/history.rs:356:36 | 356 | ... panic!(format!( | ______________________________^ 357 | | ... "McFly error: immediate_overlap_factor to be readable ({})", 358 | | ... err 359 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 356 | panic!( 357 | "McFly error: immediate_overlap_factor to be readable ({})", 358 | err 359 | ) | warning: panic message is not a string literal --> src/history/history.rs:362:36 | 362 | ... panic!(format!( | ______________________________^ 363 | | ... "McFly error: selected_occurrences_factor to be readable ({})", 364 | | ... err 365 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 362 | panic!( 363 | "McFly error: selected_occurrences_factor to be readable ({})", 364 | err 365 | ) | warning: panic message is not a string literal --> src/history/history.rs:368:36 | 368 | ... panic!(format!( | ______________________________^ 369 | | ... "McFly error: occurrences_factor to be readable ({})", 370 | | ... err 371 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 368 | panic!( 369 | "McFly error: occurrences_factor to be readable ({})", 370 | err 371 | ) | warning: panic message is not a string literal --> src/history/history.rs:376:42 | 376 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 376 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:381:24 | 381 | panic!(format!( | ________________________^ 382 | | "McFly error: Unable to load command from DB ({})", 383 | | err 384 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 381 | panic!( 382 | "McFly error: Unable to load command from DB ({})", 383 | err 384 | ) | warning: panic message is not a string literal --> src/history/history.rs:442:24 | 442 | panic!(format!( | ________________________^ 443 | | "McFly error: Removal of temp table to work ({})", 444 | | err 445 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 442 | panic!( 443 | "McFly error: Removal of temp table to work ({})", 444 | err 445 | ) | warning: panic message is not a string literal --> src/history/history.rs:455:42 | 455 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 455 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:556:124 | 556 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 556 | (":end_time", &end_time.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:557:114 | 557 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 557 | (":now", &now.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:559:44 | 559 | ]).unwrap_or_else(|err| panic!(format!("McFly error: Creation of temp table to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 559 | ]).unwrap_or_else(|err| panic!("McFly error: Creation of temp table to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:571:24 | 571 | panic!(format!( | ________________________^ 572 | | "McFly error: Ranking of temp table to work ({})", 573 | | err 574 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 571 | panic!( 572 | "McFly error: Ranking of temp table to work ({})", 573 | err 574 | ) | warning: panic message is not a string literal --> src/history/history.rs:583:24 | 583 | panic!(format!( | ________________________^ 584 | | "McFly error: Creation of index on temp table to work ({})", 585 | | err 586 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 583 | panic!( 584 | "McFly error: Creation of index on temp table to work ({})", 585 | err 586 | ) | warning: panic message is not a string literal --> src/history/history.rs:637:42 | 637 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 637 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:672:24 | 672 | panic!(format!( | ________________________^ 673 | | "McFly error: DELETE from selected_commands to work ({})", 674 | | err 675 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 672 | panic!( 673 | "McFly error: DELETE from selected_commands to work ({})", 674 | err 675 | ) | warning: panic message is not a string literal --> src/history/history.rs:684:24 | 684 | panic!(format!( | ________________________^ 685 | | "McFly error: DELETE from commands to work ({})", 686 | | err 687 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 684 | panic!( 685 | "McFly error: DELETE from commands to work ({})", 686 | err 687 | ) | warning: panic message is not a string literal --> src/history/history.rs:713:46 | 713 | .unwrap_or_else(|err| panic!(format!("McFly error: dir UPDATE to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 713 | .unwrap_or_else(|err| panic!("McFly error: dir UPDATE to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:723:28 | 723 | panic!(format!("McFly error: old_dir UPDATE to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 723 | panic!("McFly error: old_dir UPDATE to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:742:20 | 742 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 742 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:785:39 | 785 | ).unwrap_or_else(|err| panic!(format!("McFly error: Unable to initialize history db ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 785 | ).unwrap_or_else(|err| panic!("McFly error: Unable to initialize history db ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:790:46 | 790 | .unwrap_or_else(|err| panic!(format!("McFly error: Unable to prepare insert ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 790 | .unwrap_or_else(|err| panic!("McFly error: Unable to prepare insert ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:805:40 | 805 | ... panic!(format!("McFly error: Insert to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 805 | panic!("McFly error: Insert to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:824:20 | 824 | panic!(format!( | ____________________^ 825 | | "McFly error: Unable to open history database ({})", 826 | | err 827 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 824 | panic!( 825 | "McFly error: Unable to open history database ({})", 826 | err 827 | ) | warning: panic message is not a string literal --> src/history/schema.rs:22:38 | 22 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 22 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:31:20 | 31 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 31 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:41:24 | 41 | panic!(format!( | ________________________^ 42 | | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | | err 44 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 41 | panic!( 42 | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | err 44 | ) | warning: panic message is not a string literal --> src/history/schema.rs:50:24 | 50 | panic!(format!("McFly error: Unable to prepare update ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 50 | panic!("McFly error: Unable to prepare update ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:57:46 | 57 | .unwrap_or_else(|err| panic!(format!("McFly error: Insert to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 57 | .unwrap_or_else(|err| panic!("McFly error: Insert to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/schema.rs:69:24 | 69 | panic!(format!( | ________________________^ 70 | | "McFly error: Unable to add session_id to commands ({})", 71 | | err 72 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 69 | panic!( 70 | "McFly error: Unable to add session_id to commands ({})", 71 | err 72 | ) | warning: panic message is not a string literal --> src/history/schema.rs:91:24 | 91 | panic!(format!( | ________________________^ 92 | | "McFly error: Unable to add selected_commands ({})", 93 | | err 94 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 91 | panic!( 92 | "McFly error: Unable to add selected_commands ({})", 93 | err 94 | ) | warning: panic message is not a string literal --> src/history/schema.rs:115:20 | 115 | panic!(format!( | ____________________^ 116 | | "McFly error: Unable to create schema_versions db table ({})", 117 | | err 118 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 115 | panic!( 116 | "McFly error: Unable to create schema_versions db table ({})", 117 | err 118 | ) | warning: panic message is not a string literal --> src/history/schema.rs:128:16 | 128 | panic!(format!( | ________________^ 129 | | "McFly error: Unable to update schema_versions ({})", 130 | | err 131 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 128 | panic!( 129 | "McFly error: Unable to update schema_versions ({})", 130 | err 131 | ) | warning: panic message is not a string literal --> src/history/schema.rs:140:38 | 140 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 140 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history_cleaner.rs:20:24 | 20 | panic!(format!( | ________________________^ 21 | | "McFly error: Please ensure that HISTFILE is set ({})", 22 | | err 23 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 20 | panic!( 21 | "McFly error: Please ensure that HISTFILE is set ({})", 22 | err 23 | ) | warning: panic message is not a string literal --> src/history_cleaner.rs:39:20 | 39 | panic!(format!( | ____________________^ 40 | | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | | err 42 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 39 | panic!( 40 | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | err 42 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:8:16 | 8 | panic!(format!( | ________________^ 9 | | "McFly error: Unable to expand command path ({})", 10 | | err 11 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 8 | panic!( 9 | "McFly error: Unable to expand command path ({})", 10 | err 11 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:15:16 | 15 | panic!(format!( | ________________^ 16 | | "McFly error: Unable to determine current directory ({})", 17 | | err 18 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 15 | panic!( 16 | "McFly error: Unable to determine current directory ({})", 17 | err 18 | ) | warning: panic message is not a string literal --> src/settings.rs:246:36 | 246 | ... panic!(format!( | ______________________________^ 247 | | ... "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | | ... err)) | |__________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 246 | panic!( 247 | "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | err) | warning: panic message is not a string literal --> src/settings.rs:261:36 | 261 | ... panic!(format!( | ______________________________^ 262 | | ... "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | | ... err 264 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!( 262 | "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | err 264 | ) | warning: panic message is not a string literal --> src/settings.rs:290:40 | 290 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 290 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/settings.rs:313:32 | 313 | panic!(format!( | ________________________________^ 314 | | "McFly error: Unable to determine current directory ({})", 315 | | err 316 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 313 | panic!( 314 | "McFly error: Unable to determine current directory ({})", 315 | err 316 | ) | warning: panic message is not a string literal --> src/settings.rs:351:32 | 351 | panic!(format!( | ________________________________^ 352 | | "McFly error: Unable to determine current directory ({})", 353 | | err 354 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 351 | panic!( 352 | "McFly error: Unable to determine current directory ({})", 353 | err 354 | ) | warning: panic message is not a string literal --> src/shell_history.rs:42:16 | 42 | panic!(format!( | ________________^ 43 | | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | | err 45 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 42 | panic!( 43 | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | err 45 | ) | warning: panic message is not a string literal --> src/shell_history.rs:48:16 | 48 | panic!(format!( | ________________^ 49 | | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | | err 51 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 48 | panic!( 49 | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | err 51 | ) | warning: panic message is not a string literal --> src/shell_history.rs:214:20 | 214 | panic!(format!( | ____________________^ 215 | | "McFly error: please make sure HISTFILE exists ({})", 216 | | err 217 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 214 | panic!( 215 | "McFly error: please make sure HISTFILE exists ({})", 216 | err 217 | ) | warning: panic message is not a string literal --> src/training_cache.rs:9:16 | 9 | panic!(format!( | ________________^ 10 | | "McFly error: Expected to be able to write a CSV ({})", 11 | | err 12 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 9 | panic!( 10 | "McFly error: Expected to be able to write a CSV ({})", 11 | err 12 | ) | warning: panic message is not a string literal --> src/training_cache.rs:25:16 | 25 | panic!(format!( | ________________^ 26 | | "McFly error: Expected to be able to read from CSV ({})", 27 | | err 28 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 25 | panic!( 26 | "McFly error: Expected to be able to read from CSV ({})", 27 | err 28 | ) | warning: panic message is not a string literal --> src/training_cache.rs:33:20 | 33 | panic!(format!( | ____________________^ 34 | | "McFly error: Expected to be able to unwrap cached result ({})", 35 | | err 36 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 33 | panic!( 34 | "McFly error: Expected to be able to unwrap cached result ({})", 35 | err 36 | ) | warning: panic message is not a string literal --> src/training_cache.rs:73:38 | 73 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 73 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:76:38 | 76 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 76 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:98:38 | 98 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 98 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:101:38 | 101 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 101 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:106:17 | 106 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:120:17 | 120 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:134:17 | 134 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:149:17 | 149 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:166:17 | 166 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:186:17 | 186 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:211:9 | 211 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: 80 warnings emitted Finished release [optimized] target(s) in 35.94s Running unittests (target/release/deps/mcfly-281c5dde0ba5aaef) running 20 tests test command_input::tests::display_works ... ok test command_input::tests::next_word_boundary_works ... ok test fixed_length_grapheme_string::tests::max_length_works ... ok test fixed_length_grapheme_string::tests::length_works ... ok test command_input::tests::previous_word_boundary_works ... ok test path_update_helpers::tests::normalize_path_works_absolute_paths ... ok test path_update_helpers::tests::normalize_path_works_with_double_dots ... ok test path_update_helpers::tests::normalize_path_works_with_tilda ... ok test path_update_helpers::tests::parse_mv_command_works_in_the_basic_case ... ok test path_update_helpers::tests::parse_mv_command_works_with_escaped_strings ... ok test path_update_helpers::tests::parse_mv_command_works_with_escaping ... ok test path_update_helpers::tests::parse_mv_command_works_with_options ... ok test shell_history::tests::has_leading_timestamp_works ... ok test simplified_command::tests::it_handles_one_level_of_quote_escaping ... ok test simplified_command::tests::it_ignores_escaping_otherwise ... ok test simplified_command::tests::it_ignores_leading_paths ... ok test simplified_command::tests::it_simplifies_obvious_paths ... ok test simplified_command::tests::it_simplifies_simple_quoted_strings ... ok test simplified_command::tests::it_truncates_after_simplification ... ok test simplified_command::tests::it_works_for_simple_commands ... ok test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests (target/release/deps/mcfly-d9a469fb3278f359) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests mcfly running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s >>> mcfly: Entering fakeroot... Installing mcfly v0.5.6 (/home/buildozer/aports/community/mcfly/src/mcfly-0.5.6) Updating crates.io index warning: panic message is not a string literal --> src/history/db_extensions.rs:35:16 | 35 | panic!(format!( | ________________^ 36 | | "McFly error: Successful create_scalar_function ({})", 37 | | err 38 | | )) | |_________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 35 | panic!( 36 | "McFly error: Successful create_scalar_function ({})", 37 | err 38 | ) | warning: panic message is not a string literal --> src/history/history.rs:139:70 | 139 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 139 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:157:24 | 157 | panic!(format!( | ________________________^ 158 | | "McFly error: DELETE from selected_commands to work ({})", 159 | | err 160 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 157 | panic!( 158 | "McFly error: DELETE from selected_commands to work ({})", 159 | err 160 | ) | warning: panic message is not a string literal --> src/history/history.rs:170:24 | 170 | panic!(format!( | ________________________^ 171 | | "McFly error: DELETE from selected_commands to work ({})", 172 | | err 173 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 170 | panic!( 171 | "McFly error: DELETE from selected_commands to work ({})", 172 | err 173 | ) | warning: panic message is not a string literal --> src/history/history.rs:185:70 | 185 | ... ]).unwrap_or_else(|err| panic!(format!("McFly error: Insert into selected_commands to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 185 | ]).unwrap_or_else(|err| panic!("McFly error: Insert into selected_commands to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:257:42 | 257 | .unwrap_or_else(|err| panic!(format!("McFly error: Prepare to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 257 | .unwrap_or_else(|err| panic!("McFly error: Prepare to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:261:28 | 261 | panic!(format!("McFly error: cmd to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!("McFly error: cmd to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:296:32 | 296 | panic!(format!("McFly error: id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 296 | panic!("McFly error: id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:300:32 | 300 | panic!(format!("McFly error: cmd_tpl to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 300 | panic!("McFly error: cmd_tpl to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:303:32 | 303 | panic!(format!("McFly error: session_id to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 303 | panic!("McFly error: session_id to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:306:32 | 306 | panic!(format!("McFly error: when_run to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 306 | panic!("McFly error: when_run to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:309:32 | 309 | panic!(format!("McFly error: exit_code to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 309 | panic!("McFly error: exit_code to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:312:32 | 312 | panic!(format!("McFly error: selected to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 312 | panic!("McFly error: selected to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:315:32 | 315 | panic!(format!("McFly error: dir to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 315 | panic!("McFly error: dir to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:318:32 | 318 | panic!(format!("McFly error: rank to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 318 | panic!("McFly error: rank to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:323:36 | 323 | ... panic!(format!("McFly error: age_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 323 | panic!("McFly error: age_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:326:36 | 326 | ... panic!(format!( | ______________________________^ 327 | | ... "McFly error: length_factor to be readable ({})", 328 | | ... err 329 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 326 | panic!( 327 | "McFly error: length_factor to be readable ({})", 328 | err 329 | ) | warning: panic message is not a string literal --> src/history/history.rs:332:36 | 332 | ... panic!(format!("McFly error: exit_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 332 | panic!("McFly error: exit_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:335:36 | 335 | ... panic!(format!( | ______________________________^ 336 | | ... "McFly error: recent_failure_factor to be readable ({})", 337 | | ... err 338 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 335 | panic!( 336 | "McFly error: recent_failure_factor to be readable ({})", 337 | err 338 | ) | warning: panic message is not a string literal --> src/history/history.rs:341:36 | 341 | ... panic!(format!( | ______________________________^ 342 | | ... "McFly error: selected_dir_factor to be readable ({})", 343 | | ... err 344 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 341 | panic!( 342 | "McFly error: selected_dir_factor to be readable ({})", 343 | err 344 | ) | warning: panic message is not a string literal --> src/history/history.rs:347:36 | 347 | ... panic!(format!("McFly error: dir_factor to be readable ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 347 | panic!("McFly error: dir_factor to be readable ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:350:36 | 350 | ... panic!(format!( | ______________________________^ 351 | | ... "McFly error: overlap_factor to be readable ({})", 352 | | ... err 353 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 350 | panic!( 351 | "McFly error: overlap_factor to be readable ({})", 352 | err 353 | ) | warning: panic message is not a string literal --> src/history/history.rs:356:36 | 356 | ... panic!(format!( | ______________________________^ 357 | | ... "McFly error: immediate_overlap_factor to be readable ({})", 358 | | ... err 359 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 356 | panic!( 357 | "McFly error: immediate_overlap_factor to be readable ({})", 358 | err 359 | ) | warning: panic message is not a string literal --> src/history/history.rs:362:36 | 362 | ... panic!(format!( | ______________________________^ 363 | | ... "McFly error: selected_occurrences_factor to be readable ({})", 364 | | ... err 365 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 362 | panic!( 363 | "McFly error: selected_occurrences_factor to be readable ({})", 364 | err 365 | ) | warning: panic message is not a string literal --> src/history/history.rs:368:36 | 368 | ... panic!(format!( | ______________________________^ 369 | | ... "McFly error: occurrences_factor to be readable ({})", 370 | | ... err 371 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 368 | panic!( 369 | "McFly error: occurrences_factor to be readable ({})", 370 | err 371 | ) | warning: panic message is not a string literal --> src/history/history.rs:376:42 | 376 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 376 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:381:24 | 381 | panic!(format!( | ________________________^ 382 | | "McFly error: Unable to load command from DB ({})", 383 | | err 384 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 381 | panic!( 382 | "McFly error: Unable to load command from DB ({})", 383 | err 384 | ) | warning: panic message is not a string literal --> src/history/history.rs:442:24 | 442 | panic!(format!( | ________________________^ 443 | | "McFly error: Removal of temp table to work ({})", 444 | | err 445 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 442 | panic!( 443 | "McFly error: Removal of temp table to work ({})", 444 | err 445 | ) | warning: panic message is not a string literal --> src/history/history.rs:455:42 | 455 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 455 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:556:124 | 556 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 556 | (":end_time", &end_time.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:557:114 | 557 | ...UNIX_EPOCH).unwrap_or_else(|err| panic!(format!("McFly error: Time went backwards ({})", err))).as_secs() as i64).to_owned()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 557 | (":now", &now.unwrap_or(SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_else(|err| panic!("McFly error: Time went backwards ({})", err)).as_secs() as i64).to_owned()), | -- -- warning: panic message is not a string literal --> src/history/history.rs:559:44 | 559 | ]).unwrap_or_else(|err| panic!(format!("McFly error: Creation of temp table to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 559 | ]).unwrap_or_else(|err| panic!("McFly error: Creation of temp table to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:571:24 | 571 | panic!(format!( | ________________________^ 572 | | "McFly error: Ranking of temp table to work ({})", 573 | | err 574 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 571 | panic!( 572 | "McFly error: Ranking of temp table to work ({})", 573 | err 574 | ) | warning: panic message is not a string literal --> src/history/history.rs:583:24 | 583 | panic!(format!( | ________________________^ 584 | | "McFly error: Creation of index on temp table to work ({})", 585 | | err 586 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 583 | panic!( 584 | "McFly error: Creation of index on temp table to work ({})", 585 | err 586 | ) | warning: panic message is not a string literal --> src/history/history.rs:637:42 | 637 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 637 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:672:24 | 672 | panic!(format!( | ________________________^ 673 | | "McFly error: DELETE from selected_commands to work ({})", 674 | | err 675 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 672 | panic!( 673 | "McFly error: DELETE from selected_commands to work ({})", 674 | err 675 | ) | warning: panic message is not a string literal --> src/history/history.rs:684:24 | 684 | panic!(format!( | ________________________^ 685 | | "McFly error: DELETE from commands to work ({})", 686 | | err 687 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 684 | panic!( 685 | "McFly error: DELETE from commands to work ({})", 686 | err 687 | ) | warning: panic message is not a string literal --> src/history/history.rs:713:46 | 713 | .unwrap_or_else(|err| panic!(format!("McFly error: dir UPDATE to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 713 | .unwrap_or_else(|err| panic!("McFly error: dir UPDATE to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:723:28 | 723 | panic!(format!("McFly error: old_dir UPDATE to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 723 | panic!("McFly error: old_dir UPDATE to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:742:20 | 742 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 742 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:785:39 | 785 | ).unwrap_or_else(|err| panic!(format!("McFly error: Unable to initialize history db ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 785 | ).unwrap_or_else(|err| panic!("McFly error: Unable to initialize history db ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:790:46 | 790 | .unwrap_or_else(|err| panic!(format!("McFly error: Unable to prepare insert ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 790 | .unwrap_or_else(|err| panic!("McFly error: Unable to prepare insert ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/history.rs:805:40 | 805 | ... panic!(format!("McFly error: Insert to work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 805 | panic!("McFly error: Insert to work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/history.rs:824:20 | 824 | panic!(format!( | ____________________^ 825 | | "McFly error: Unable to open history database ({})", 826 | | err 827 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 824 | panic!( 825 | "McFly error: Unable to open history database ({})", 826 | err 827 | ) | warning: panic message is not a string literal --> src/history/schema.rs:22:38 | 22 | .unwrap_or_else(|err| panic!(format!("McFly error: Query to work ({})", err))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 22 | .unwrap_or_else(|err| panic!("McFly error: Query to work ({})", err)) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:31:20 | 31 | panic!(format!("McFly error: STDOUT flush should work ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 31 | panic!("McFly error: STDOUT flush should work ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:41:24 | 41 | panic!(format!( | ________________________^ 42 | | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | | err 44 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 41 | panic!( 42 | "McFly error: Unable to add cmd_tpl to commands ({})", 43 | err 44 | ) | warning: panic message is not a string literal --> src/history/schema.rs:50:24 | 50 | panic!(format!("McFly error: Unable to prepare update ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 50 | panic!("McFly error: Unable to prepare update ({})", err) | -- -- warning: panic message is not a string literal --> src/history/schema.rs:57:46 | 57 | .unwrap_or_else(|err| panic!(format!("McFly error: Insert to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 57 | .unwrap_or_else(|err| panic!("McFly error: Insert to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history/schema.rs:69:24 | 69 | panic!(format!( | ________________________^ 70 | | "McFly error: Unable to add session_id to commands ({})", 71 | | err 72 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 69 | panic!( 70 | "McFly error: Unable to add session_id to commands ({})", 71 | err 72 | ) | warning: panic message is not a string literal --> src/history/schema.rs:91:24 | 91 | panic!(format!( | ________________________^ 92 | | "McFly error: Unable to add selected_commands ({})", 93 | | err 94 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 91 | panic!( 92 | "McFly error: Unable to add selected_commands ({})", 93 | err 94 | ) | warning: panic message is not a string literal --> src/history/schema.rs:115:20 | 115 | panic!(format!( | ____________________^ 116 | | "McFly error: Unable to create schema_versions db table ({})", 117 | | err 118 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 115 | panic!( 116 | "McFly error: Unable to create schema_versions db table ({})", 117 | err 118 | ) | warning: panic message is not a string literal --> src/history/schema.rs:128:16 | 128 | panic!(format!( | ________________^ 129 | | "McFly error: Unable to update schema_versions ({})", 130 | | err 131 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 128 | panic!( 129 | "McFly error: Unable to update schema_versions ({})", 130 | err 131 | ) | warning: panic message is not a string literal --> src/history/schema.rs:140:38 | 140 | .unwrap_or_else(|err| panic!(format!("McFly error: Query Map to work ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 140 | .unwrap_or_else(|err| panic!("McFly error: Query Map to work ({})", err)); | -- -- warning: panic message is not a string literal --> src/history_cleaner.rs:20:24 | 20 | panic!(format!( | ________________________^ 21 | | "McFly error: Please ensure that HISTFILE is set ({})", 22 | | err 23 | | )) | |_________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 20 | panic!( 21 | "McFly error: Please ensure that HISTFILE is set ({})", 22 | err 23 | ) | warning: panic message is not a string literal --> src/history_cleaner.rs:39:20 | 39 | panic!(format!( | ____________________^ 40 | | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | | err 42 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 39 | panic!( 40 | "McFly error: The contents of $MCFLY_HISTORY appear invalid ({})", 41 | err 42 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:8:16 | 8 | panic!(format!( | ________________^ 9 | | "McFly error: Unable to expand command path ({})", 10 | | err 11 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 8 | panic!( 9 | "McFly error: Unable to expand command path ({})", 10 | err 11 | ) | warning: panic message is not a string literal --> src/path_update_helpers.rs:15:16 | 15 | panic!(format!( | ________________^ 16 | | "McFly error: Unable to determine current directory ({})", 17 | | err 18 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 15 | panic!( 16 | "McFly error: Unable to determine current directory ({})", 17 | err 18 | ) | warning: panic message is not a string literal --> src/settings.rs:246:36 | 246 | ... panic!(format!( | ______________________________^ 247 | | ... "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | | ... err)) | |__________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 246 | panic!( 247 | "McFly error: Please ensure that MCFLY_SESSION_ID contains a random session ID ({})", 248 | err) | warning: panic message is not a string literal --> src/settings.rs:261:36 | 261 | ... panic!(format!( | ______________________________^ 262 | | ... "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | | ... err 264 | | ... )) | |_______________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 261 | panic!( 262 | "McFly error: Please ensure that MCFLY_HISTORY is set ({})", 263 | err 264 | ) | warning: panic message is not a string literal --> src/settings.rs:290:40 | 290 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 290 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/settings.rs:313:32 | 313 | panic!(format!( | ________________________________^ 314 | | "McFly error: Unable to determine current directory ({})", 315 | | err 316 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 313 | panic!( 314 | "McFly error: Unable to determine current directory ({})", 315 | err 316 | ) | warning: panic message is not a string literal --> src/settings.rs:351:32 | 351 | panic!(format!( | ________________________________^ 352 | | "McFly error: Unable to determine current directory ({})", 353 | | err 354 | | )) | |_________________________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 351 | panic!( 352 | "McFly error: Unable to determine current directory ({})", 353 | err 354 | ) | warning: panic message is not a string literal --> src/shell_history.rs:42:16 | 42 | panic!(format!( | ________________^ 43 | | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | | err 45 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 42 | panic!( 43 | "McFly error: Please ensure HISTFILE is set for your shell ({})", 44 | err 45 | ) | warning: panic message is not a string literal --> src/shell_history.rs:48:16 | 48 | panic!(format!( | ________________^ 49 | | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | | err 51 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 48 | panic!( 49 | "McFly error: The contents of $HISTFILE appear invalid ({})", 50 | err 51 | ) | warning: panic message is not a string literal --> src/shell_history.rs:214:20 | 214 | panic!(format!( | ____________________^ 215 | | "McFly error: please make sure HISTFILE exists ({})", 216 | | err 217 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 214 | panic!( 215 | "McFly error: please make sure HISTFILE exists ({})", 216 | err 217 | ) | warning: panic message is not a string literal --> src/training_cache.rs:9:16 | 9 | panic!(format!( | ________________^ 10 | | "McFly error: Expected to be able to write a CSV ({})", 11 | | err 12 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 9 | panic!( 10 | "McFly error: Expected to be able to write a CSV ({})", 11 | err 12 | ) | warning: panic message is not a string literal --> src/training_cache.rs:25:16 | 25 | panic!(format!( | ________________^ 26 | | "McFly error: Expected to be able to read from CSV ({})", 27 | | err 28 | | )) | |_________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 25 | panic!( 26 | "McFly error: Expected to be able to read from CSV ({})", 27 | err 28 | ) | warning: panic message is not a string literal --> src/training_cache.rs:33:20 | 33 | panic!(format!( | ____________________^ 34 | | "McFly error: Expected to be able to unwrap cached result ({})", 35 | | err 36 | | )) | |_____________^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 33 | panic!( 34 | "McFly error: Expected to be able to unwrap cached result ({})", 35 | err 36 | ) | warning: panic message is not a string literal --> src/training_cache.rs:73:38 | 73 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 73 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:76:38 | 76 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 76 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:98:38 | 98 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to write to CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 98 | .unwrap_or_else(|err| panic!("McFly error: Expected to write to CSV ({})", err)); | -- -- warning: panic message is not a string literal --> src/training_cache.rs:101:38 | 101 | .unwrap_or_else(|err| panic!(format!("McFly error: Expected to flush CSV ({})", err))); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 101 | .unwrap_or_else(|err| panic!("McFly error: Expected to flush CSV ({})", err)); | -- -- warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:106:17 | 106 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_must_use)]` on by default = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:120:17 | 120 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:134:17 | 134 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:149:17 | 149 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:166:17 | 166 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:186:17 | 186 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: unused return value of `std::mem::replace` that must be used --> src/command_input.rs:211:9 | 211 | mem::replace(&mut self.command, new_command); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: if you don't need the old value, you can just assign the new value directly warning: 80 warnings emitted warning: panic message is not a string literal --> src/main.rs:27:24 | 27 | panic!(format!( | ________________________^ 28 | | "McFly error: Please ensure that HISTFILE is set ({})", 29 | | err 30 | | )) | |_________________^ | = note: `#[warn(non_fmt_panic)]` on by default = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 27 | panic!( 28 | "McFly error: Please ensure that HISTFILE is set ({})", 29 | err 30 | ) | warning: panic message is not a string literal --> src/main.rs:38:36 | 38 | ... panic!(format!("McFly error: Time went backwards ({})", err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 38 | panic!("McFly error: Time went backwards ({})", err) | -- -- warning: panic message is not a string literal --> src/main.rs:79:24 | 79 | panic!(format!("McFly error: unable to write to {}: {}", path, err)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this is no longer accepted in Rust 2021 = note: the panic!() macro supports formatting, so there's no need for the format!() macro here help: remove the `format!(..)` macro call | 79 | panic!("McFly error: unable to write to {}: {}", path, err) | -- -- warning: 3 warnings emitted Finished release [optimized] target(s) in 1.27s Installing /home/buildozer/aports/community/mcfly/pkg/mcfly/usr/bin/mcfly Installed package `mcfly v0.5.6 (/home/buildozer/aports/community/mcfly/src/mcfly-0.5.6)` (executable `mcfly`) warning: be sure to add `/home/buildozer/aports/community/mcfly/pkg/mcfly/usr/bin` to your PATH to be able to run the installed binaries >>> mcfly-bash-completion*: Running split function bashcomp... '/home/buildozer/aports/community/mcfly/pkg/mcfly/usr/share/bash-completion/completions' -> '/home/buildozer/aports/community/mcfly/pkg/mcfly-bash-completion/usr/share/bash-completion/completions' >>> mcfly-bash-completion*: Preparing subpackage mcfly-bash-completion... >>> mcfly-bash-completion*: Running postcheck for mcfly-bash-completion >>> mcfly-fish-completion*: Running split function fishcomp... '/home/buildozer/aports/community/mcfly/pkg/mcfly/usr/share/fish/completions' -> '/home/buildozer/aports/community/mcfly/pkg/mcfly-fish-completion/usr/share/fish/completions' >>> mcfly-fish-completion*: Preparing subpackage mcfly-fish-completion... >>> mcfly-fish-completion*: Running postcheck for mcfly-fish-completion >>> mcfly-zsh-completion*: Running split function zshcomp... '/home/buildozer/aports/community/mcfly/pkg/mcfly/usr/share/zsh/site-functions' -> '/home/buildozer/aports/community/mcfly/pkg/mcfly-zsh-completion/usr/share/zsh/site-functions' >>> mcfly-zsh-completion*: Preparing subpackage mcfly-zsh-completion... >>> mcfly-zsh-completion*: Running postcheck for mcfly-zsh-completion >>> mcfly*: Running postcheck for mcfly >>> mcfly*: Preparing package mcfly... >>> mcfly*: Stripping binaries >>> mcfly-bash-completion*: Scanning shared objects >>> mcfly-fish-completion*: Scanning shared objects >>> mcfly-zsh-completion*: Scanning shared objects >>> mcfly*: Scanning shared objects >>> mcfly-bash-completion*: Tracing dependencies... >>> mcfly-bash-completion*: Package size: 24.0 KB >>> mcfly-bash-completion*: Compressing data... >>> mcfly-bash-completion*: Create checksum... >>> mcfly-bash-completion*: Create mcfly-bash-completion-0.5.6-r0.apk >>> mcfly-fish-completion*: Tracing dependencies... >>> mcfly-fish-completion*: Package size: 24.0 KB >>> mcfly-fish-completion*: Compressing data... >>> mcfly-fish-completion*: Create checksum... >>> mcfly-fish-completion*: Create mcfly-fish-completion-0.5.6-r0.apk >>> mcfly-zsh-completion*: Tracing dependencies... >>> mcfly-zsh-completion*: Package size: 24.0 KB >>> mcfly-zsh-completion*: Compressing data... >>> mcfly-zsh-completion*: Create checksum... >>> mcfly-zsh-completion*: Create mcfly-zsh-completion-0.5.6-r0.apk >>> mcfly*: Tracing dependencies... so:libc.musl-x86.so.1 so:libgcc_s.so.1 so:libsqlite3.so.0 >>> mcfly*: Package size: 1.4 MB >>> mcfly*: Compressing data... >>> mcfly*: Create checksum... >>> mcfly*: Create mcfly-0.5.6-r0.apk >>> mcfly: Build complete at Mon, 24 May 2021 15:53:26 +0000 elapsed time 0h 1m 47s >>> mcfly: Cleaning up srcdir >>> mcfly: Cleaning up pkgdir >>> mcfly: Uninstalling dependencies... (1/14) Purging .makedepends-mcfly (20210524.155142) (2/14) Purging cargo (1.52.0-r0) (3/14) Purging rust (1.52.0-r0) (4/14) Purging rust-stdlib (1.52.0-r0) (5/14) Purging sqlite-dev (3.35.5-r0) (6/14) Purging sqlite-libs (3.35.5-r0) (7/14) Purging llvm11-libs (11.1.0-r2) (8/14) Purging libffi (3.3-r2) (9/14) Purging libxml2 (2.9.12-r1) (10/14) Purging xz-libs (5.2.5-r0) (11/14) Purging libgit2 (1.1.0-r2) (12/14) Purging http-parser (2.9.4-r0) (13/14) Purging pcre (8.44-r0) (14/14) Purging libssh2 (1.9.0-r1) Executing busybox-1.33.1-r1.trigger OK: 312 MiB in 89 packages >>> mcfly: Updating the community/x86 repository index... >>> mcfly: Signing the index...