Skip to content

Commit

Permalink
Fix formatting for tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
slightlyoutofphase authored Sep 12, 2020
1 parent 0439556 commit 4284aad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,8 @@ impl Clean<Item> for doctree::Function<'_> {

let did = cx.tcx.hir().local_def_id(self.id);
let constness = if is_const_fn(cx.tcx, did.to_def_id())
&& !is_unstable_const_fn(cx.tcx, did.to_def_id()).is_some() {
&& !is_unstable_const_fn(cx.tcx, did.to_def_id()).is_some()
{
hir::Constness::Const
} else {
hir::Constness::NotConst
Expand Down

0 comments on commit 4284aad

Please sign in to comment.