Function rustfmt_nightly::items::rewrite_extern_crate
source · pub(crate) fn rewrite_extern_crate(
context: &RewriteContext<'_>,
item: &Item,
attrs_shape: Shape,
) -> Option<String>
Expand description
Rewrite extern crate foo;
.
The given shape is used to format the extern crate’s attributes.