File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,8 @@ 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 {
60
+ impl core:: convert:: Into <R > for #rty {
61
+ fn into( bits: #rty) -> Self {
68
62
Self { bits }
69
63
}
70
64
}
@@ -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,8 +85,8 @@ 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 {
88
+ impl core :: convert :: Into < W > for #rty {
89
+ fn into ( bits: #rty) -> Self {
96
90
Self { bits }
97
91
}
98
92
}
You can’t perform that action at this time.
0 commit comments