File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ impl<T: PortRead> PortReadOnly<T> {
118
118
#[ cfg( feature = "const_fn" ) ]
119
119
pub const fn new ( port : u16 ) -> PortReadOnly < T > {
120
120
PortReadOnly {
121
- port : port ,
121
+ port,
122
122
phantom : PhantomData ,
123
123
}
124
124
}
@@ -127,7 +127,7 @@ impl<T: PortRead> PortReadOnly<T> {
127
127
#[ cfg( not( feature = "const_fn" ) ) ]
128
128
pub fn new ( port : u16 ) -> PortReadOnly < T > {
129
129
PortReadOnly {
130
- port : port ,
130
+ port,
131
131
phantom : PhantomData ,
132
132
}
133
133
}
@@ -147,7 +147,7 @@ impl<T: PortWrite> PortWriteOnly<T> {
147
147
#[ cfg( feature = "const_fn" ) ]
148
148
pub const fn new ( port : u16 ) -> PortWriteOnly < T > {
149
149
PortWriteOnly {
150
- port : port ,
150
+ port,
151
151
phantom : PhantomData ,
152
152
}
153
153
}
@@ -156,7 +156,7 @@ impl<T: PortWrite> PortWriteOnly<T> {
156
156
#[ cfg( not( feature = "const_fn" ) ) ]
157
157
pub fn new ( port : u16 ) -> PortWriteOnly < T > {
158
158
PortWriteOnly {
159
- port : port ,
159
+ port,
160
160
phantom : PhantomData ,
161
161
}
162
162
}
@@ -176,7 +176,7 @@ impl<T: PortReadWrite> Port<T> {
176
176
#[ cfg( feature = "const_fn" ) ]
177
177
pub const fn new ( port : u16 ) -> Port < T > {
178
178
Port {
179
- port : port ,
179
+ port,
180
180
phantom : PhantomData ,
181
181
}
182
182
}
@@ -185,7 +185,7 @@ impl<T: PortReadWrite> Port<T> {
185
185
#[ cfg( not( feature = "const_fn" ) ) ]
186
186
pub fn new ( port : u16 ) -> Port < T > {
187
187
Port {
188
- port : port ,
188
+ port,
189
189
phantom : PhantomData ,
190
190
}
191
191
}
You can’t perform that action at this time.
0 commit comments