Simplify
This commit is contained in:
parent
02f9e04ee9
commit
f5947be0ea
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ impl Path {
|
|||
}
|
||||
|
||||
pub fn type_anchor(&self) -> Option<&TypeRef> {
|
||||
self.type_anchor.as_ref().map(|it| &**it)
|
||||
self.type_anchor.as_deref()
|
||||
}
|
||||
|
||||
pub fn segments(&self) -> PathSegments<'_> {
|
||||
|
|
Loading…
Add table
Reference in a new issue