Kaynağa Gözat

Fixed clippy warnings

Cesar Rodas 10 ay önce
ebeveyn
işleme
71990434a7
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      utxo/src/storage/mod.rs
  2. 1 1
      utxo/src/transaction/mod.rs

+ 1 - 1
utxo/src/storage/mod.rs

@@ -693,7 +693,7 @@ pub mod test {
         ledger
             .deposit(
                 &account,
-                usd.from_human(&"1010.99").expect("valid amount"),
+                usd.from_human("1010.99").expect("valid amount"),
                 "settled".into(),
                 vec!["even".parse().expect("valid tag")],
                 "test deposit after the subscription listener is dropped".to_owned(),

+ 1 - 1
utxo/src/transaction/mod.rs

@@ -124,7 +124,7 @@ impl Transaction {
     pub fn get_filterable_fields(&self) -> Vec<FilterableValue> {
         let mut filters = vec![
             FilterableValue::Anything,
-            FilterableValue::Type(self.transaction.typ.clone()),
+            FilterableValue::Type(self.transaction.typ),
             FilterableValue::TxId(self.id.clone()),
             FilterableValue::Status(self.revision.status.clone()),
             FilterableValue::Revision(self.revision_id.clone()),