Update signature of Lifetime::new

This commit is contained in:
David Tolnay
2018-03-31 23:46:25 +02:00
parent 8b44eb8bfc
commit ba002e1119
2 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ use syn::punctuated::Punctuated;
use internals::ast::{Data, Container};
use internals::attr;
use proc_macro2::{Span, Term};
use proc_macro2::Span;
// Remove the default from every type parameter because in the generated impls
// they look like associated types: "error: associated type bindings are not
@@ -251,7 +251,7 @@ pub fn with_self_bound(
}
pub fn with_lifetime_bound(generics: &syn::Generics, lifetime: &str) -> syn::Generics {
let bound = syn::Lifetime::new(Term::new(lifetime, Span::call_site()));
let bound = syn::Lifetime::new(lifetime, Span::call_site());
let def = syn::LifetimeDef {
attrs: Vec::new(),
lifetime: bound,