From 88f02da93e8aec57b0447d7a12d7d3f9f1476a25 Mon Sep 17 00:00:00 2001 From: Tamme Schichler Date: Tue, 29 Aug 2023 22:38:11 +0200 Subject: [PATCH] Some smaller fixes --- .../src/component_declaration/parameter_helper_definitions.rs | 2 +- proc-macro-definitions/src/part/html_definition.rs | 1 - tests/attributes.rs | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proc-macro-definitions/src/component_declaration/parameter_helper_definitions.rs b/proc-macro-definitions/src/component_declaration/parameter_helper_definitions.rs index d561ff0..4ea3fe2 100644 --- a/proc-macro-definitions/src/component_declaration/parameter_helper_definitions.rs +++ b/proc-macro-definitions/src/component_declaration/parameter_helper_definitions.rs @@ -106,7 +106,7 @@ fn transform_type_param_bounds<'a>( ) } TypeParamBound::Lifetime(l) => transform_lifetime(l, lifetime, adjust_lifetimes), - b @ TypeParamBound::Verbatim(_) => { + _b @ TypeParamBound::Verbatim(_) => { todo!("transform_type_param_bounds: TypeParamBound::Verbatim") } _ => unimplemented!("transform_type_param_bounds: _"), diff --git a/proc-macro-definitions/src/part/html_definition.rs b/proc-macro-definitions/src/part/html_definition.rs index 1a7724f..066428a 100644 --- a/proc-macro-definitions/src/part/html_definition.rs +++ b/proc-macro-definitions/src/part/html_definition.rs @@ -45,7 +45,6 @@ impl AttributeKey { let substrate = cx.substrate; match self { AttributeKey::Known(name) => { - let asteracea = asteracea_ident(name.span()); quote_spanned! {name.span().resolved_at(Span::mixed_site())=> ::NAME } diff --git a/tests/attributes.rs b/tests/attributes.rs index daf662c..e61e7b1 100644 --- a/tests/attributes.rs +++ b/tests/attributes.rs @@ -1,4 +1,5 @@ #![allow(dead_code)] //TODO: Test output. +#![allow(unused_braces)] use asteracea::substrates::web as substrate;