aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/resources_struct.rs
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2020-10-19 21:00:18 +0200
committerGravatar Per Lindgren <per.lindgren@ltu.se> 2020-10-19 21:00:18 +0200
commit41472032dcb83156b380dd5629898d33398e9604 (patch)
tree42db66dc4ae2b6b8078a1236137a617230be87ab /macros/src/codegen/resources_struct.rs
parent6de4f1a797c81aec6c24f47872e5d3968344684c (diff)
downloadrtic-41472032dcb83156b380dd5629898d33398e9604.tar.gz
rtic-41472032dcb83156b380dd5629898d33398e9604.tar.zst
rtic-41472032dcb83156b380dd5629898d33398e9604.zip
async haxx (public Priority)async_experiment
Diffstat (limited to 'macros/src/codegen/resources_struct.rs')
-rw-r--r--macros/src/codegen/resources_struct.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/macros/src/codegen/resources_struct.rs b/macros/src/codegen/resources_struct.rs
index 92d5b666..69069449 100644
--- a/macros/src/codegen/resources_struct.rs
+++ b/macros/src/codegen/resources_struct.rs
@@ -165,6 +165,7 @@ pub fn codegen(
let constructor = quote!(
impl<#lt> #ident<#lt> {
#[inline(always)]
+ // pub const unsafe fn new(#arg) -> Self {
pub unsafe fn new(#arg) -> Self {
#ident {
#(#values,)*