File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ edition = "2021"
1515
1616[dependencies ]
1717proc-macro2 = " 1"
18- syn = " 1"
1918quote = " 1.0.18"
19+ syn = { version = " 1" , features = [" full" ] }
2020
2121[dependencies .attribute-derive-macro ]
2222version = " 0.2.0"
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ pub trait TryExtendOne {
250250pub trait ConvertParsed
251251where
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:
You can’t perform that action at this time.
0 commit comments