Skip to content

Commit

Permalink
chore: Rustfmt nightly options
Browse files Browse the repository at this point in the history
  • Loading branch information
VorpalBlade committed Jul 27, 2024
1 parent e1287bb commit 2c9d5ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/checks.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Standard checks to include for most programs
use crate::{Check, CheckResult};
use crate::Check;
use crate::CheckResult;

/// Provide info on the rust version used to compile the code
pub const CHECK_RUSTC_VERSION: Check = Check {
Expand Down
13 changes: 9 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ pub mod checks;
#[cfg(test)]
mod tests;

use std::{cmp::max, io::Write};
use std::cmp::max;
use std::io::Write;

use anstyle::{AnsiColor, Effects, Reset};
use anstyle::AnsiColor;
use anstyle::Effects;
use anstyle::Reset;
use strum::IntoStaticStr;
use thiserror::Error;

Expand Down Expand Up @@ -117,8 +120,10 @@ pub fn summary(output: &mut impl Write, worst_issues_found: CheckResult) -> Resu
Reset.render()
)?;
} else if worst_issues_found >= CheckResult::Warning {
writeln!(output,
"\n{}Warning{}: Warning(s) found, consider investigating (especially if you have issues)",
writeln!(
output,
"\n{}Warning{}: Warning(s) found, consider investigating (especially if you have \
issues)",
AnsiColor::Yellow.render_fg(),
Reset.render()
)?;
Expand Down
4 changes: 3 additions & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::{medic, Check, CheckResult};
use crate::medic;
use crate::Check;
use crate::CheckResult;
use pretty_assertions::assert_eq;

#[test]
Expand Down

0 comments on commit 2c9d5ba

Please sign in to comment.