get rid of useless ampersands
This commit is contained in:
parent
d086629f27
commit
64e877d4a6
|
@ -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]
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue