Skip to content

Commit 32b2104

Browse files
committed
Fix warnings in 'mithril-common'
1 parent 5eda448 commit 32b2104

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

mithril-common/src/crypto_helper/cardano/codec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl<'a> TryFrom<&'a mut Sum6KesBytes> for Sum6Kes<'a> {
132132
}
133133
}
134134

135-
#[cfg(all(test))]
135+
#[cfg(test)]
136136
mod test {
137137
use super::*;
138138

mithril-common/src/crypto_helper/cardano/key_certification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl KeyRegWrapper {
291291
}
292292
}
293293

294-
#[cfg(all(test))]
294+
#[cfg(test)]
295295
mod test {
296296

297297
use super::*;

mithril-common/src/signable_builder/cardano_immutable_full_signable_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mod tests {
8383
}
8484
#[tokio::test]
8585
async fn compute_signable() {
86-
let digester = ImmutableDigesterImpl::default();
86+
let digester = ImmutableDigesterImpl;
8787
let signable_builder = CardanoImmutableFilesFullSignableBuilder::new(
8888
Arc::new(digester),
8989
Path::new(""),

mithril-common/src/store/adapter/memory_adapter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ where
102102

103103
#[cfg(test)]
104104
mod tests {
105-
use std::borrow::Borrow;
106-
107105
use super::*;
108106

109107
fn init_adapter(nb: u64) -> MemoryAdapter<u64, String> {
@@ -232,7 +230,7 @@ mod tests {
232230
async fn check_get_last_n_modified_records() {
233231
let mut adapter = init_adapter(3);
234232
adapter
235-
.store_record(&1, "updated record".to_string().borrow())
233+
.store_record(&1, &"updated record".to_string())
236234
.await
237235
.unwrap();
238236
let values = adapter.get_last_n_records(2).await.unwrap();

0 commit comments

Comments
 (0)