You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Remove redundant closure in get_transaction_are_locked
- Fix useless type conversion (remove .into() on string literal)
- Change &Vec to &[T] for better performance in function signature
- Remove unnecessary reference taking in pattern matching
- Fix remaining needless borrows in node management functions
- Verified remaining "redundant imports" are actually used (false positives)
Further reduces clippy warnings across the codebase
let transaction_ids_json = tx_ids.iter().map(into_json).collect::<Result<Vec<Value>>>()?;
517
516
let args = [transaction_ids_json.into()];
518
517
self.call("gettxchainlocks",&args)
519
518
}
@@ -891,22 +890,22 @@ pub trait RpcApi: Sized {
891
890
/// Attempts to add a node to the addnode list.
892
891
/// Nodes added using addnode (or -connect) are protected from DoS disconnection and are not required to be full nodes/support SegWit as other outbound peers are (though such peers will not be synced from).
/// Returns data about each connected network node as an array of
@@ -1738,7 +1737,7 @@ mod tests {
1738
1737
#[test]
1739
1738
fntest_raw_tx(){
1740
1739
use dashcore::consensus::encode;
1741
-
let client = Client::new("http://localhost/".into(),Auth::None).unwrap();
1740
+
let client = Client::new("http://localhost/",Auth::None).unwrap();
1742
1741
let tx:Transaction = encode::deserialize(&Vec::<u8>::from_hex("0200000001586bd02815cf5faabfec986a4e50d25dbee089bd2758621e61c5fab06c334af0000000006b483045022100e85425f6d7c589972ee061413bcf08dc8c8e589ce37b217535a42af924f0e4d602205c9ba9cb14ef15513c9d946fa1c4b797883e748e8c32171bdf6166583946e35c012103dae30a4d7870cd87b45dd53e6012f71318fdd059c1c2623b8cc73f8af287bb2dfeffffff021dc4260c010000001976a914f602e88b2b5901d8aab15ebe4a97cf92ec6e03b388ac00e1f505000000001976a914687ffeffe8cf4e4c038da46a9b1d37db385a472d88acfd211500").unwrap()).unwrap();
0 commit comments