Remove some noise in the generated code
Struct initialisations don't need to repeat field names if they're equal
to a local variable.
@@ -49,8 +49,8 @@ pub fn render(
for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W
{
let bits = self.register.get();
- let r = R { bits: bits };
- let mut w = W { bits: bits };
+ let r = R { bits };
+ let mut w = W { bits };
f(&r, &mut w);
self.register.set(w.bits);
}
