Merge #2622
2622: Simplify r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
825afb0854
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