Skip to content

Commit 760bb29

Browse files
chore: fix compile warnings
1 parent e72f307 commit 760bb29

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1148,10 +1148,10 @@ pub(crate) fn is_simple_block(
11481148
attrs: Option<&[ast::Attribute]>,
11491149
source_map: &SourceMap,
11501150
) -> bool {
1151-
(block.stmts.len() == 1
1151+
block.stmts.len() == 1
11521152
&& stmt_is_expr(&block.stmts[0])
11531153
&& !block_contains_comment(block, source_map)
1154-
&& attrs.map_or(true, |a| a.is_empty()))
1154+
&& attrs.map_or(true, |a| a.is_empty())
11551155
}
11561156

11571157
/// Checks whether a block contains at most one statement or expression, and no

src/items.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ fn compute_budgets_for_params(
25852585
ret_str_len: usize,
25862586
fn_brace_style: FnBraceStyle,
25872587
force_vertical_layout: bool,
2588-
) -> Option<((usize, usize, Indent))> {
2588+
) -> Option<(usize, usize, Indent)> {
25892589
debug!(
25902590
"compute_budgets_for_params {} {:?}, {}, {:?}",
25912591
result.len(),

src/modules.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::borrow::Cow;
22
use std::collections::BTreeMap;
33
use std::path::{Path, PathBuf};
44

5-
use rustc_errors::{Diagnostic, PResult};
5+
use rustc_errors::PResult;
66
use rustc_parse::{new_sub_parser_from_file, parser, DirectoryOwnership};
77
use rustc_session::parse::ParseSess;
88
use rustc_span::symbol::{sym, Symbol};

0 commit comments

Comments
 (0)