Skip to content

Commit 83c790f

Browse files
committed
Make some functions private that don't need to be public
1 parent 7477d44 commit 83c790f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub fn get_deprecation(cx: &DocContext<'_>, def_id: DefId) -> Option<Deprecation
109109
cx.tcx.lookup_deprecation(def_id).clean(cx)
110110
}
111111

112-
pub fn external_generic_args(
112+
fn external_generic_args(
113113
cx: &DocContext<'_>,
114114
trait_did: Option<DefId>,
115115
has_self: bool,
@@ -159,7 +159,7 @@ pub fn external_generic_args(
159159

160160
// trait_did should be set to a trait's DefId if called on a TraitRef, in order to sugar
161161
// from Fn<(A, B,), C> to Fn(A, B) -> C
162-
pub fn external_path(
162+
pub(super) fn external_path(
163163
cx: &DocContext<'_>,
164164
name: Symbol,
165165
trait_did: Option<DefId>,

0 commit comments

Comments
 (0)