Skip to content

Commit 79ec894

Browse files
committed
Fix some warnings
1 parent bfff2a5 commit 79ec894

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/allocator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ pub fn codegen(tcx: TyCtxt<'_>, module: &mut Module<impl Backend + 'static>) ->
2121
if any_dynamic_crate {
2222
false
2323
} else if let Some(kind) = tcx.allocator_kind() {
24-
codegen_inner(tcx.sess, module, kind);
24+
codegen_inner(module, kind);
2525
true
2626
} else {
2727
false
2828
}
2929
}
3030

31-
pub fn codegen_inner(sess: &Session, module: &mut Module<impl Backend + 'static>, kind: AllocatorKind) {
31+
pub fn codegen_inner(module: &mut Module<impl Backend + 'static>, kind: AllocatorKind) {
3232
let usize_ty = module.target_config().pointer_type();
3333

3434
for method in ALLOCATOR_METHODS {

src/pretty_clif.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub struct CommentWriter {
7474

7575
impl CommentWriter {
7676
pub fn new<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) -> Self {
77-
let mut global_comments = if cfg!(debug_assertions) {
77+
let global_comments = if cfg!(debug_assertions) {
7878
vec![
7979
format!("symbol {}", tcx.symbol_name(instance).name.as_str()),
8080
format!("instance {:?}", instance),

0 commit comments

Comments
 (0)