warning: panic message is not a string literal
--> src/periodic_cashflow/irr.rs:62:13
|
62 | / format!(
63 | | "exceeded {} IRR precision threshold, {}",
64 | | irr(&cf, guess).unwrap(),
65 | | precision
66 | | )
| |_____________^
|
= note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html>
= note: the assert!() macro supports formatting, so there's no need for the format!() macro here
help: remove the `format!(..)` macro call
|
62 ~
63 | "exceeded {} IRR precision threshold, {}",
64 | irr(&cf, guess).unwrap(),
65 | precision
66 ~
|
The compiler said it will an error in Rust 2021