get rid of useless ampersands

This commit is contained in:
Erik Zscheile 2019-12-23 02:00:17 +01:00
parent d086629f27
commit 64e877d4a6
2 changed files with 5 additions and 5 deletions

View file

@ -146,9 +146,9 @@ fn main() {
let yearuhj = format!("{} {}", k.0, if k.1 { "II" } else { "I" });
v.2 += &std::iter::repeat(' ').take(pdsp - v.3).collect::<String>();
table.add_row(if highlight.contains(&*k.2) {
row![&yearuhj, FYBdb-> &k.2, r-> &v.0.to_string(), Fgbr-> &v.2]
row![yearuhj, FYBdb-> k.2, r-> v.0.to_string(), Fgbr-> v.2]
} else {
row![&yearuhj, &k.2, r-> &v.0.to_string(), r-> &v.2]
row![yearuhj, k.2, r-> v.0.to_string(), r-> v.2]
});
}

View file

@ -107,15 +107,15 @@ impl std::convert::TryFrom<csv::StringRecord> for TransactionLine {
record[7].is_empty() as u8,
];
let konto_data = match &*r_e {
&[0, 1, 0, 1] => KontoDaten::Old {
[0, 1, 0, 1] => KontoDaten::Old {
knr: record[4].parse()?,
blz: record[6].parse()?,
},
&[1, 0, 1, 0] => KontoDaten::New {
[1, 0, 1, 0] => KontoDaten::New {
iban: record[5].to_string(),
bic: record[7].to_string(),
},
&[1, 1, 1, 1] => KontoDaten::None,
[1, 1, 1, 1] => KontoDaten::None,
_ => {
return Err(ParseError::KontoDaten([
r_e[0] != 0,