Skip to content

Commit

Permalink
avoid passing anonymous parameters to trais
Browse files Browse the repository at this point in the history
According to the RFC[1], passing anonymous parameters to traits is a
deprecated feature.
[1]: https://github.com/rust-lang/rfcs/blob/master/text/1685-deprecate-anonymous-parameters.md

Signed-off-by: Liu Jiang <[email protected]>
  • Loading branch information
jiangliu committed Mar 5, 2019
1 parent e67e463 commit d0db04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub trait Address:
+ BitOr<<Self as AddressValue>::V, Output = Self>
{
/// Create an address from a raw address value.
fn new(Self::V) -> Self;
fn new(addr: Self::V) -> Self;

/// Get the raw value of an address.
fn raw_value(&self) -> Self::V;
Expand Down

0 comments on commit d0db04a

Please sign in to comment.