diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-02 17:13:06 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-02 17:13:06 +0000 |
commit | 54efd8204ec05313007d42351fe4701061b06a67 (patch) | |
tree | 1dc7bdb2cf040843dd552661bfc2225e3679eb5a /crates/ra_hir/src | |
parent | 4f30c459336e948790910e268d8f751b95815ac2 (diff) | |
parent | 28f6eedba59d3a5dd43fe6fbde3d19d54d0e2f9d (diff) |
Merge #407
407: run r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/module.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/module.rs b/crates/ra_hir/src/module.rs index 26171d27c..a53b69d20 100644 --- a/crates/ra_hir/src/module.rs +++ b/crates/ra_hir/src/module.rs | |||
@@ -80,7 +80,7 @@ impl Module { | |||
80 | Some(Crate::new(crate_id)) | 80 | Some(Crate::new(crate_id)) |
81 | } | 81 | } |
82 | 82 | ||
83 | /// Returns the all modulkes on the way to the root. | 83 | /// Returns the all modules on the way to the root. |
84 | pub fn path_to_root(&self) -> Vec<Module> { | 84 | pub fn path_to_root(&self) -> Vec<Module> { |
85 | generate(Some(self.clone()), move |it| it.parent()).collect::<Vec<Module>>() | 85 | generate(Some(self.clone()), move |it| it.parent()).collect::<Vec<Module>>() |
86 | } | 86 | } |