mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 23:01:33 +00:00
Fix some rustc/clippy warnings. (#895)
This commit is contained in:
@ -35,7 +35,7 @@ impl TopicHash {
|
||||
/// Builds a new `TopicHash` from the given hash.
|
||||
#[inline]
|
||||
pub fn from_raw(hash: String) -> TopicHash {
|
||||
TopicHash { hash: hash }
|
||||
TopicHash { hash }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
@ -94,7 +94,7 @@ impl TopicBuilder {
|
||||
let mut builder = rpc_proto::TopicDescriptor::new();
|
||||
builder.set_name(name.into());
|
||||
|
||||
TopicBuilder { builder: builder }
|
||||
TopicBuilder { builder }
|
||||
}
|
||||
|
||||
/// Turns the builder into an actual `Topic`.
|
||||
|
Reference in New Issue
Block a user