File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,9 @@ pub fn render(
57
57
pub struct R {
58
58
bits: #rty,
59
59
}
60
- impl core:: ops:: Deref for R {
61
- type Target = #rty;
62
- fn deref( & self ) -> & Self :: Target {
63
- & self . bits
64
- }
65
- }
66
- impl vcell:: FromBits <#rty> for R {
67
- fn from_bits( bits: #rty) -> Self {
68
- Self { bits }
60
+ impl core:: convert:: Into <R > for #rty {
61
+ fn into( self : Self ) -> R {
62
+ R { bits: self }
69
63
}
70
64
}
71
65
} ) ;
@@ -74,7 +68,7 @@ pub fn render(
74
68
/// Value of the register as raw bits
75
69
#[ inline]
76
70
pub fn bits( & self ) -> #rty {
77
- * * self
71
+ self . bits
78
72
}
79
73
} ) ;
80
74
}
@@ -91,9 +85,9 @@ pub fn render(
91
85
& self . bits
92
86
}
93
87
}
94
- impl vcell :: FromBits <#rty > for W {
95
- fn from_bits ( bits : #rty ) -> Self {
96
- Self { bits }
88
+ impl core :: convert :: Into < W > for #rty {
89
+ fn into ( self : Self ) -> W {
90
+ W { bits: self }
97
91
}
98
92
}
99
93
} ) ;
You can’t perform that action at this time.
0 commit comments