diff options
author | 2020-09-01 17:04:55 +0000 | |
---|---|---|
committer | 2020-09-01 17:48:53 +0000 | |
commit | d06cf91acc1126e66002f8884b1e7b7a65a9b24a (patch) | |
tree | 6654eb05d7ad4d1a8a2e1ad15bb8e8b14bae3d31 /macros/src/codegen/resources_struct.rs | |
parent | d8c9476372e25799224d0225bb12c9a9fe043743 (diff) | |
download | rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.tar.gz rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.tar.zst rtic-d06cf91acc1126e66002f8884b1e7b7a65a9b24a.zip |
Remove stale code, fix comment styling
Diffstat (limited to 'macros/src/codegen/resources_struct.rs')
-rw-r--r-- | macros/src/codegen/resources_struct.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/macros/src/codegen/resources_struct.rs b/macros/src/codegen/resources_struct.rs index 0c5efd3a..dbbba30e 100644 --- a/macros/src/codegen/resources_struct.rs +++ b/macros/src/codegen/resources_struct.rs @@ -39,7 +39,7 @@ pub fn codegen( if ctxt.is_init() { if !analysis.ownerships.contains_key(name) { - // owned by `init` + // Owned by `init` fields.push(quote!( #(#cfgs)* pub #name: &'static #mut_ #ty @@ -50,7 +50,7 @@ pub fn codegen( #name: &#mut_ #name )); } else { - // owned by someone else + // Owned by someone else lt = Some(quote!('a)); fields.push(quote!( @@ -75,7 +75,7 @@ pub fn codegen( pub #name: &'a #ty )); } else { - // resource proxy + // Resource proxy lt = Some(quote!('a)); fields.push(quote!( @@ -136,7 +136,7 @@ pub fn codegen( if lt.is_some() { *needs_lt = true; - // the struct could end up empty due to `cfg`s leading to an error due to `'a` being unused + // The struct could end up empty due to `cfg`s leading to an error due to `'a` being unused if has_cfgs { fields.push(quote!( #[doc(hidden)] |