Fix review nits
This commit is contained in:
@@ -270,7 +270,7 @@ impl Span {
|
||||
/// `self` was generated from, if any.
|
||||
#[unstable(feature = "proc_macro", issue = "38356")]
|
||||
pub fn parent(&self) -> Option<Span> {
|
||||
self.0.parent().map(|x| { Span(x) })
|
||||
self.0.parent().map(Span)
|
||||
}
|
||||
|
||||
/// The span for the origin source code that `self` was generated from. If
|
||||
|
||||
Reference in New Issue
Block a user