Skip to content

Commit 4875cb6

Browse files
committed
fixed clippy warnings in npv_sensitivity.rs
1 parent b629e90 commit 4875cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/financial/npv_sensitivity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod tests {
3030
use super::*;
3131
#[test]
3232
fn test_npv_sensitivity() {
33-
let cashflows = vec![-1000.00, 400.00, 400.00, 400.00];
33+
let cashflows = [-1000.00, 400.00, 400.00, 400.00];
3434
let rates = vec![0.05, 0.1, 0.2];
3535
let expected = vec![89.30, -5.26, -157.41];
3636
let out = npv_sensitivity(&cashflows, &rates);

0 commit comments

Comments
 (0)