From 54e5c4f0859ecbac0762051ca680a567c67cff6f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 8 Jan 2019 15:40:02 +0300 Subject: minimize visibility --- crates/ra_hir/src/adt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/adt.rs b/crates/ra_hir/src/adt.rs index 8639bbd5c..602e7db74 100644 --- a/crates/ra_hir/src/adt.rs +++ b/crates/ra_hir/src/adt.rs @@ -84,7 +84,7 @@ impl EnumData { } impl VariantData { - pub(crate) fn new(flavor: StructFlavor) -> Self { + fn new(flavor: StructFlavor) -> Self { match flavor { StructFlavor::Tuple(fl) => { let fields = fl -- cgit v1.2.3