We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393f705 commit 89d2574Copy full SHA for 89d2574
macros/src/generator.rs
@@ -45,8 +45,8 @@ pub fn expand_bitmap(input: BitmapInput) -> syn::Result<TokenStream2> {
45
}
46
47
#[inline]
48
- pub fn #setter_name(&mut self, value: #this_storage_ty) -> &mut Self {
49
- assert!(value <= #mask as #this_storage_ty);
+ pub fn #setter_name(&mut self, value: #storage_ty) -> &mut Self {
+ assert!(value <= #mask as #storage_ty);
50
self.0 = ((self.0 & !((#mask) << #bit_index)) | (((value as #storage_ty) & #mask) << #bit_index));
51
self
52
0 commit comments