diff options
author | Aleksey Kladov <[email protected]> | 2020-11-02 15:31:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-02 15:58:33 +0000 |
commit | ba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch) | |
tree | 6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/hir_ty/src/infer.rs | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) |
Remove more unreachable pubs
Diffstat (limited to 'crates/hir_ty/src/infer.rs')
-rw-r--r-- | crates/hir_ty/src/infer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs index f4c1fa2f2..a14d67c06 100644 --- a/crates/hir_ty/src/infer.rs +++ b/crates/hir_ty/src/infer.rs | |||
@@ -94,7 +94,7 @@ enum BindingMode { | |||
94 | } | 94 | } |
95 | 95 | ||
96 | impl BindingMode { | 96 | impl BindingMode { |
97 | pub fn convert(annotation: BindingAnnotation) -> BindingMode { | 97 | fn convert(annotation: BindingAnnotation) -> BindingMode { |
98 | match annotation { | 98 | match annotation { |
99 | BindingAnnotation::Unannotated | BindingAnnotation::Mutable => BindingMode::Move, | 99 | BindingAnnotation::Unannotated | BindingAnnotation::Mutable => BindingMode::Move, |
100 | BindingAnnotation::Ref => BindingMode::Ref(Mutability::Shared), | 100 | BindingAnnotation::Ref => BindingMode::Ref(Mutability::Shared), |