diff options
author | Aleksey Kladov <[email protected]> | 2019-01-02 17:12:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-02 17:12:38 +0000 |
commit | 28f6eedba59d3a5dd43fe6fbde3d19d54d0e2f9d (patch) | |
tree | 55074a42a5b17515fc6e328bf3270838cb70db23 /crates/ra_hir | |
parent | ef08b6c084fc2676655fe6dfb693ab097d3f9fd9 (diff) |
simplify runnables
Diffstat (limited to 'crates/ra_hir')
-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 | } |