mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 03:44:24 +00:00
needless_return
This commit is contained in:
parent
6699c90788
commit
e58b683201
@ -176,7 +176,6 @@ forget_non_drop = "allow"
|
|||||||
format_collect = "allow"
|
format_collect = "allow"
|
||||||
large_enum_variant = "allow"
|
large_enum_variant = "allow"
|
||||||
needless_doctest_main = "allow"
|
needless_doctest_main = "allow"
|
||||||
needless_return = "allow"
|
|
||||||
new_without_default = "allow"
|
new_without_default = "allow"
|
||||||
nonminimal_bool = "allow"
|
nonminimal_bool = "allow"
|
||||||
non_canonical_clone_impl = "allow"
|
non_canonical_clone_impl = "allow"
|
||||||
|
@ -2404,10 +2404,10 @@ impl Const {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Ok(s) = mir::render_const_using_debug_impl(db, self.id, &c) {
|
if let Ok(s) = mir::render_const_using_debug_impl(db, self.id, &c) {
|
||||||
return Ok(s);
|
Ok(s)
|
||||||
|
} else {
|
||||||
|
Ok(format!("{}", c.display(db)))
|
||||||
}
|
}
|
||||||
let r = format!("{}", c.display(db));
|
|
||||||
return Ok(r);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user