mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
needless_return
This commit is contained in:
parent
6699c90788
commit
e58b683201
2 changed files with 3 additions and 4 deletions
|
@ -176,7 +176,6 @@ forget_non_drop = "allow"
|
|||
format_collect = "allow"
|
||||
large_enum_variant = "allow"
|
||||
needless_doctest_main = "allow"
|
||||
needless_return = "allow"
|
||||
new_without_default = "allow"
|
||||
nonminimal_bool = "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) {
|
||||
return Ok(s);
|
||||
Ok(s)
|
||||
} else {
|
||||
Ok(format!("{}", c.display(db)))
|
||||
}
|
||||
let r = format!("{}", c.display(db));
|
||||
return Ok(r);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue