Restore support for rustc <1.36

This commit is contained in:
David Tolnay 2019-10-12 11:08:32 -07:00
parent b78fe1891b
commit 5b0d29a6e5
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -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<_>>()?;