Skip to content

Commit 94a0923

Browse files
committed
Remove box syntax from Box<function pointer> construction
The function pointer should be extremely small, close to pointer size.
1 parent 3dcb616 commit 94a0923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/core.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ pub(crate) fn create_config(
285285
diagnostic_output: DiagnosticOutput::Default,
286286
lint_caps,
287287
parse_sess_created: None,
288-
register_lints: Some(box crate::lint::register_lints),
288+
register_lints: Some(Box::new(crate::lint::register_lints)),
289289
override_queries: Some(|_sess, providers, _external_providers| {
290290
// Most lints will require typechecking, so just don't run them.
291291
providers.lint_mod = |_, _| {};

0 commit comments

Comments
 (0)