Skip to content

Commit cb48bf9

Browse files
committed
fix clippy
Signed-off-by: xizheyin <[email protected]>
1 parent 5cd502c commit cb48bf9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Diff for: crates/rustc_codegen_c/src/builder.rs

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
use std::ops::Deref;
44

55
use rustc_abi::{HasDataLayout, TargetDataLayout};
6-
use rustc_codegen_c_ast::expr::{CExpr, CValue};
76
use rustc_codegen_c_ast::func::CFunc;
87
use rustc_codegen_ssa::traits::{BackendTypes, BuilderMethods, HasCodegen};
98
use rustc_middle::ty::layout::{

Diff for: crates/rustc_codegen_c_ast/src/ty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ pub(crate) fn print_declarator(mut ty: CTy, val: Option<CValue>, ctx: &mut Print
237237
ctx.word("*");
238238
}
239239
DeclaratorPart::ArrayDim(dim) => {
240-
ctx.word(format!("[{}]", dim.to_string()));
240+
ctx.word(format!("[{}]", dim));
241241
}
242242
DeclaratorPart::Lp => ctx.word("("),
243243
DeclaratorPart::Rp => ctx.word(")"),

0 commit comments

Comments
 (0)