Skip to content

Commit 121974e

Browse files
committed
xpy fmt
1 parent 219e93d commit 121974e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/librustdoc/clean/types.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ use std::default::Default;
33
use std::fmt;
44
use std::hash::{Hash, Hasher};
55
use std::iter::FromIterator;
6+
use std::lazy::SyncOnceCell as OnceCell;
67
use std::num::NonZeroU32;
78
use std::rc::Rc;
89
use std::sync::Arc;
910
use std::{slice, vec};
10-
use std::lazy::SyncOnceCell as OnceCell;
1111

1212
use rustc_ast::attr;
1313
use rustc_ast::util::comments::beautify_doc_string;
@@ -27,7 +27,7 @@ use rustc_span::symbol::{kw, sym, Ident, Symbol};
2727
use rustc_span::{self, FileName};
2828
use rustc_target::abi::VariantIdx;
2929
use rustc_target::spec::abi::Abi;
30-
use smallvec::{SmallVec, smallvec};
30+
use smallvec::{smallvec, SmallVec};
3131

3232
use crate::clean::cfg::Cfg;
3333
use crate::clean::external_path;
@@ -1296,8 +1296,9 @@ impl PrimitiveType {
12961296
}
12971297

12981298
let single = |a: Option<DefId>| a.into_iter().collect();
1299-
let both =
1300-
|a: Option<DefId>, b: Option<DefId>| -> SmallVec<_> { a.into_iter().chain(b).collect() };
1299+
let both = |a: Option<DefId>, b: Option<DefId>| -> SmallVec<_> {
1300+
a.into_iter().chain(b).collect()
1301+
};
13011302

13021303
let lang_items = tcx.lang_items();
13031304
map! {

src/librustdoc/passes/collect_intra_doc_links.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,12 @@ impl<'a, 'tcx> LinkCollector<'a, 'tcx> {
275275
let link = cx
276276
.tcx
277277
.associated_items(impl_)
278-
.find_by_name_and_namespace(cx.tcx, Ident::with_dummy_span(item_name), ns, impl_)
278+
.find_by_name_and_namespace(
279+
cx.tcx,
280+
Ident::with_dummy_span(item_name),
281+
ns,
282+
impl_,
283+
)
279284
.and_then(|item| match item.kind {
280285
ty::AssocKind::Fn => Some("method"),
281286
_ => None,

0 commit comments

Comments
 (0)