Skip to content

Commit 75f76c1

Browse files
committed
fix imports in impl_Attribute_for_Parse_and_ToTokens
1 parent 5bf1eb7 commit 75f76c1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- fix imports in `impl_Attribute_for_Parse_and_ToTokens!`
89

910
## [0.10.2] - 2024-10-30
1011
### Added

src/syn_impls.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ use crate::*;
2626
#[macro_export]
2727
macro_rules! impl_Attribute_for_Parse_and_ToTokens {
2828
($($type:ty),+ $(,)?) => {$(
29-
impl AttributeBase for $type {
29+
impl $crate::parsing::AttributeBase for $type {
3030
type Partial = Self;
3131
}
3232

33-
impl AttributeValue for $type {
34-
fn parse_value(input: syn::parse::ParseStream) -> Result<SpannedValue<Self::Partial>> {
35-
input.parse().map(SpannedValue::from_to_tokens)
33+
impl $crate::parsing::AttributeValue for $type {
34+
fn parse_value(input: $crate::__private::syn::parse::ParseStream) -> $crate::Result<$crate::parsing::SpannedValue<Self::Partial>> {
35+
input.parse().map($crate::parsing::SpannedValue::from_to_tokens)
3636
}
3737
}
3838

39-
impl PositionalValue for $type {}
39+
impl $crate::parsing::PositionalValue for $type {}
4040

4141
)*}
4242
}

0 commit comments

Comments
 (0)