1
Fork 0

Use more named format args

This commit is contained in:
Guillaume Gomez 2023-08-15 14:27:29 +02:00
parent a1a94b1c0f
commit 16b34bfae3
16 changed files with 130 additions and 85 deletions

View file

@ -565,10 +565,10 @@ fn portability(item: &clean::Item, parent: Option<&clean::Item>) -> Option<Strin
};
debug!(
"Portability {:?} {:?} (parent: {parent:?}) - {:?} = {cfg:?}",
item.name,
item.cfg,
parent.and_then(|p| p.cfg.as_ref()),
"Portability {name:?} {item_cfg:?} (parent: {parent:?}) - {parent_cfg:?} = {cfg:?}",
name = item.name,
item_cfg = item.cfg,
parent_cfg = parent.and_then(|p| p.cfg.as_ref()),
);
Some(cfg?.render_long_html())
@ -1243,7 +1243,10 @@ fn render_deref_methods(
_ => None,
})
.expect("Expected associated type binding");
debug!("Render deref methods for {:#?}, target {target:#?}", impl_.inner_impl().for_);
debug!(
"Render deref methods for {for_:#?}, target {target:#?}",
for_ = impl_.inner_impl().for_
);
let what =
AssocItemRender::DerefFor { trait_: deref_type, type_: real_target, deref_mut_: deref_mut };
if let Some(did) = target.def_id(cache) {