arranged CSV logic into structs and related methods. This greatly improves readability as I was able to consolidate a lot of things together. The feature itself remains largely unchanged, with the exception of the following:
the csv output is now directed to stdout rather than writing to the ledger file. This change maintains parity with ledger.
offset accounts should be specified using -s argument.
updated github actions to use clippy and rustfmt.
this PR includes changes related to clippy comments. I have never run clippy locally before, so I fixed up the errors it returned. Most of the errors were related to unnecessary return statements, using String over &str, using print!() instead of println!(), etc.
stdout
rather than writing to the ledger file. This change maintains parity withledger
.-s
argument.clippy
andrustfmt
.String
over&str
, usingprint!()
instead ofprintln!()
, etc.