Fix clippy warnings

korrat
Apr 30, 2023, 7:57 AM
HWT4JVUEFEGQWV7WF3TVWU7EXGZGUGU7TAIUYKN2DOBLB4UAM55QC

Dependencies

  • [2] R524JUUE Implement metadata & price directives
  • [3] YDK6X6PP add a library of important types for beancount
  • [4] T2S6UAVJ Include builder methods on beancount-types
  • [5] 2JBFREZG enable additional warnings
  • [6] W3MWSSJ7 Add a templating engine for accounts
  • [7] SEEWF7KX Implement metadata on transactions
  • [8] SMBQYFPG Enable access to timestamps for directives
  • [9] 6MYJDQ3I Handle price directives
  • [10] YBARPI2B Make account templates owned

Change contents

  • replacement in common/beancount-types/src/transaction.rs at line 168
    [3.1937][3.1937:1973]()
    pub fn on(date: Date) -> Self {
    [3.1937]
    [2.9721]
    #[must_use] pub fn on(date: Date) -> Self {
  • replacement in common/beancount-types/src/transaction.rs at line 287
    [2.10226][2.10226:10275]()
    pub fn main_account(&self) -> Option<&Acc> {
    [2.10226]
    [2.10275]
    #[must_use] pub fn main_account(&self) -> Option<&Acc> {
  • replacement in common/beancount-types/src/price.rs at line 23
    [2.339][2.339:409]()
    pub fn new(date: Date, quote: Commodity, price: Amount) -> Self {
    [2.339]
    [2.409]
    #[must_use] pub fn new(date: Date, quote: Commodity, price: Amount) -> Self {
  • replacement in common/beancount-types/src/lib.rs at line 83
    [2.11696][3.6454:6487](),[3.6454][3.6454:6487]()
    pub fn date(&self) -> Date {
    [2.11696]
    [3.6487]
    #[must_use] pub fn date(&self) -> Date {
  • replacement in common/beancount-types/src/lib.rs at line 91
    [3.6641][3.6641:6690]()
    pub fn main_account(&self) -> Option<&Acc> {
    [3.6641]
    [3.6690]
    #[must_use] pub fn main_account(&self) -> Option<&Acc> {
  • replacement in common/beancount-types/src/lib.rs at line 99
    [3.926][3.926:982]()
    pub fn timestamp(&self) -> Option<OffsetDateTime> {
    [3.926]
    [3.982]
    #[must_use] pub fn timestamp(&self) -> Option<OffsetDateTime> {
  • replacement in common/beancount-types/src/amount.rs at line 136
    [3.7612][3.7612:7676]()
    pub fn new(amount: Decimal, commodity: Commodity) -> Self {
    [3.7612]
    [3.7676]
    #[must_use] pub fn new(amount: Decimal, commodity: Commodity) -> Self {
  • replacement in common/beancount-types/src/account/template.rs at line 113
    [3.1133][2.13431:13464]()
    pub fn base(&self) -> &Acc {
    [3.1133]
    [2.13464]
    #[must_use] pub fn base(&self) -> &Acc {