]> git.lizzy.rs Git - rust.git/commitdiff
Make some functions private that don't need to be public
authorJoshua Nelson <jyn514@gmail.com>
Sun, 11 Oct 2020 03:50:45 +0000 (23:50 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Sun, 11 Oct 2020 15:54:40 +0000 (11:54 -0400)
src/librustdoc/clean/utils.rs

index 913342e271513f4ce8d9a080501eae32302f035d..cdea5a7af203d3c55619f16c89b7ec4665e7f6aa 100644 (file)
@@ -109,7 +109,7 @@ pub fn get_deprecation(cx: &DocContext<'_>, def_id: DefId) -> Option<Deprecation
     cx.tcx.lookup_deprecation(def_id).clean(cx)
 }
 
-pub fn external_generic_args(
+fn external_generic_args(
     cx: &DocContext<'_>,
     trait_did: Option<DefId>,
     has_self: bool,
@@ -159,7 +159,7 @@ pub fn external_generic_args(
 
 // trait_did should be set to a trait's DefId if called on a TraitRef, in order to sugar
 // from Fn<(A, B,), C> to Fn(A, B) -> C
-pub fn external_path(
+pub(super) fn external_path(
     cx: &DocContext<'_>,
     name: Symbol,
     trait_did: Option<DefId>,