mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
cleanup
This commit is contained in:
parent
73e49493bd
commit
c450d0ce41
7 changed files with 7 additions and 18 deletions
|
@ -239,7 +239,6 @@ where
|
|||
T: HirDisplay,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
println!("formatting..");
|
||||
match self.t.hir_fmt(&mut HirFormatter {
|
||||
db: self.db,
|
||||
fmt: f,
|
||||
|
@ -341,10 +340,7 @@ impl HirDisplay for Ty {
|
|||
if f.should_truncate() {
|
||||
return write!(f, "{}", TYPE_HINT_TRUNCATION);
|
||||
}
|
||||
|
||||
let interner_kind = self.kind(Interner);
|
||||
println!("interner kind: {interner_kind:?}");
|
||||
|
||||
|
||||
match self.kind(Interner) {
|
||||
TyKind::Never => write!(f, "!")?,
|
||||
TyKind::Str => write!(f, "str")?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue