diff options
author | Dawer <[email protected]> | 2021-05-10 12:55:00 +0100 |
---|---|---|
committer | Dawer <[email protected]> | 2021-05-31 20:08:27 +0100 |
commit | 466345ca81c9f8a17347671ca27856eb963858f4 (patch) | |
tree | 8327771c3d67f7c4509b373e8ad7075f5cfd5ac6 /crates/hir_def | |
parent | 49e016169fc8413e2734a655cbd55ebba2907b76 (diff) |
Clean up, more docs.
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/path.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs index 4cdb5913d..f98622faa 100644 --- a/crates/hir_def/src/path.rs +++ b/crates/hir_def/src/path.rs | |||
@@ -166,10 +166,7 @@ impl Path { | |||
166 | } | 166 | } |
167 | 167 | ||
168 | /// Converts a known mod path to `Path`. | 168 | /// Converts a known mod path to `Path`. |
169 | pub fn from_known_path( | 169 | pub fn from_known_path(path: ModPath, generic_args: Vec<Option<Interned<GenericArgs>>>) -> Path { |
170 | path: ModPath, | ||
171 | generic_args: Vec<Option<Interned<GenericArgs>>>, | ||
172 | ) -> Path { | ||
173 | Path { type_anchor: None, mod_path: Interned::new(path), generic_args } | 170 | Path { type_anchor: None, mod_path: Interned::new(path), generic_args } |
174 | } | 171 | } |
175 | 172 | ||