Fix review nits

This commit is contained in:
bobtwinkles
2018-04-26 18:28:34 -04:00
parent 498dbe4453
commit 73e0c1e968
3 changed files with 7 additions and 7 deletions

View File

@@ -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