mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-04 13:27:38 +03:00
Restore support for rustc <1.36
This commit is contained in:
parent
b78fe1891b
commit
5b0d29a6e5
1 changed files with 2 additions and 2 deletions
|
@ -87,13 +87,13 @@ fn impl_enum(input: &DeriveInput, data: &DataEnum) -> Result<TokenStream> {
|
|||
|
||||
let sources: Vec<Option<Member>> = variant_fields
|
||||
.iter()
|
||||
.copied()
|
||||
.cloned()
|
||||
.map(source_member)
|
||||
.collect::<Result<_>>()?;
|
||||
|
||||
let backtraces: Vec<Option<Member>> = variant_fields
|
||||
.iter()
|
||||
.copied()
|
||||
.cloned()
|
||||
.map(backtrace_member)
|
||||
.collect::<Result<_>>()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue