librustc: Replace impl Type : Trait
with impl Trait for Type
. rs=implflipping
This commit is contained in:
parent
8ec6f43d6c
commit
9143688197
583 changed files with 1115 additions and 1115 deletions
|
@ -193,7 +193,7 @@ pub mod v4 {
|
|||
unsafe fn as_u32() -> u32;
|
||||
}
|
||||
|
||||
impl Ipv4Rep: AsUnsafeU32 {
|
||||
impl AsUnsafeU32 for Ipv4Rep {
|
||||
// this is pretty dastardly, i know
|
||||
unsafe fn as_u32() -> u32 {
|
||||
*((ptr::addr_of(&self)) as *u32)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue