Skip to content

Commit

Permalink
Make Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Sep 12, 2024
1 parent 61d51d0 commit 6492583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions utils/linting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ pub fn try_init_config(sess: &rustc_session::Session) -> ConfigResult<()> {
result
}

#[allow(clippy::empty_line_after_outer_attr)]
#[cfg_attr(dylint_lib = "supplementary", allow(commented_code))]
fn try_init_config_guarded(sess: &rustc_session::Session) -> ConfigResult<()> {
if config::get().is_some() {
Expand Down
1 change: 1 addition & 0 deletions utils/linting/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fn builds_with_cfg_docsrs() {
// smoelius: Avoid: https://github.com/rust-lang/rustup/issues/988
static MUTEX: Mutex<()> = Mutex::new(());

#[allow(clippy::result_large_err)]
fn update_nightly() -> AssertResult {
let _lock = MUTEX.lock().unwrap();

Expand Down

0 comments on commit 6492583

Please sign in to comment.