Return ConstStability instead of &ConstStability in Item::const_stability
This commit is contained in:
parent
b647c90262
commit
02782bba60
3 changed files with 5 additions and 8 deletions
|
@ -805,7 +805,7 @@ fn assoc_type(
|
|||
fn render_stability_since_raw(
|
||||
w: &mut Buffer,
|
||||
ver: Option<Symbol>,
|
||||
const_stability: Option<&ConstStability>,
|
||||
const_stability: Option<ConstStability>,
|
||||
containing_ver: Option<Symbol>,
|
||||
containing_const_ver: Option<Symbol>,
|
||||
) {
|
||||
|
@ -814,7 +814,7 @@ fn render_stability_since_raw(
|
|||
match (ver, const_stability) {
|
||||
// stable and const stable
|
||||
(Some(v), Some(ConstStability { level: StabilityLevel::Stable { since }, .. }))
|
||||
if Some(*since) != containing_const_ver =>
|
||||
if Some(since) != containing_const_ver =>
|
||||
{
|
||||
write!(
|
||||
w,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue