diff options
author | Florian Diebold <[email protected]> | 2021-04-07 19:50:26 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-07 19:50:26 +0100 |
commit | dc116f7ce2192433c9491441a11d294e7d294fbf (patch) | |
tree | 2d80f23bb35ce8f19a40e85260dc621a830c20bf /crates/hir_ty/src/types.rs | |
parent | be0084a0bc903544835d5c87df9eb9ce29a191d1 (diff) |
Fix return type of Substitution::interned
Diffstat (limited to 'crates/hir_ty/src/types.rs')
-rw-r--r-- | crates/hir_ty/src/types.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/types.rs b/crates/hir_ty/src/types.rs index e1a28f5f7..89adad108 100644 --- a/crates/hir_ty/src/types.rs +++ b/crates/hir_ty/src/types.rs | |||
@@ -282,7 +282,7 @@ impl GenericArg { | |||
282 | pub struct Substitution(SmallVec<[GenericArg; 2]>); | 282 | pub struct Substitution(SmallVec<[GenericArg; 2]>); |
283 | 283 | ||
284 | impl Substitution { | 284 | impl Substitution { |
285 | pub fn interned(&self) -> &[GenericArg] { | 285 | pub fn interned(&self) -> &SmallVec<[GenericArg; 2]> { |
286 | &self.0 | 286 | &self.0 |
287 | } | 287 | } |
288 | 288 | ||