Skip to content

Commit 8842464

Browse files
committed
fix: missing syn types
1 parent 23b5382 commit 8842464

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ edition = "2021"
1515

1616
[dependencies]
1717
proc-macro2 = "1"
18-
syn = "1"
1918
quote = "1.0.18"
19+
syn = { version = "1", features = ["full"] }
2020

2121
[dependencies.attribute-derive-macro]
2222
version = "0.2.0"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pub trait TryExtendOne {
250250
pub trait ConvertParsed
251251
where
252252
Self: Sized,
253-
Self::Type: Error + Clone,
253+
Self::Type: Error,
254254
{
255255
/// The type this can be converted from
256256
type Type;
@@ -259,12 +259,12 @@ where
259259
/// This can return an error, e.g. when parsing an integer too large for a [`u8`] into an `u8`
260260
fn convert(value: Self::Type) -> Result<Self>;
261261
/// Should values of this type return their default when they are not specified even when the
262-
/// `default` flag is not specified (only returns `true` for [`Option`] currently)
262+
/// `default` flag is not specified (only returns `true` for [`Option`], [`Vec`] and [`bool`] currently)
263263
fn default_by_default() -> bool {
264264
false
265265
}
266266
/// The default value, this is necessary to implement the implicit default behavior of
267-
/// [`Option`]
267+
/// [`Option`] and [`bool`].
268268
///
269269
/// This is necessary as the [`Default`] trait cannot be used in expanded code, but normally you
270270
/// can easily implement it using it:

0 commit comments

Comments
 (0)