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"
15
15
16
16
[dependencies ]
17
17
proc-macro2 = " 1"
18
- syn = " 1"
19
18
quote = " 1.0.18"
19
+ syn = { version = " 1" , features = [" full" ] }
20
20
21
21
[dependencies .attribute-derive-macro ]
22
22
version = " 0.2.0"
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ pub trait TryExtendOne {
250
250
pub trait ConvertParsed
251
251
where
252
252
Self : Sized ,
253
- Self :: Type : Error + Clone ,
253
+ Self :: Type : Error ,
254
254
{
255
255
/// The type this can be converted from
256
256
type Type ;
@@ -259,12 +259,12 @@ where
259
259
/// This can return an error, e.g. when parsing an integer too large for a [`u8`] into an `u8`
260
260
fn convert ( value : Self :: Type ) -> Result < Self > ;
261
261
/// 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)
263
263
fn default_by_default ( ) -> bool {
264
264
false
265
265
}
266
266
/// The default value, this is necessary to implement the implicit default behavior of
267
- /// [`Option`]
267
+ /// [`Option`] and [`bool`].
268
268
///
269
269
/// This is necessary as the [`Default`] trait cannot be used in expanded code, but normally you
270
270
/// can easily implement it using it:
You can’t perform that action at this time.
0 commit comments