Skip to content

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
Surprised this didn't get picked up in PR CI.
Mysteries abound.
  • Loading branch information
mpalmer committed Mar 3, 2023
1 parent 65bba5f commit f0473e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub mod cli {
let src = &match fs::read_to_string(path) {
Ok(src) => src,
Err(err) => {
eprintln!("Unable to read file: {}", err);
eprintln!("Unable to read file: {err}");
success = false;
continue;
}
Expand Down Expand Up @@ -141,13 +141,13 @@ fn run(config: &RunConfig) -> ValidationState {
Ok(doc) => match config.action_type {
ActionType::Action => {
if config.verbose {
log::log(&format!("Treating {} as an Action definition", file_name));
log::log(&format!("Treating {file_name} as an Action definition"));
}
validate_as_action(&doc)
}
ActionType::Workflow => {
if config.verbose {
log::log(&format!("Treating {} as a Workflow definition", file_name));
log::log(&format!("Treating {file_name} as a Workflow definition"));
}
// TODO: Re-enable path and job validation
let mut state = validate_as_workflow(&doc);
Expand Down
6 changes: 3 additions & 3 deletions src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn log(s: &str) {

#[cfg(not(feature = "js"))]
pub fn log(s: &str) {
println!("{}", s);
println!("{s}");
}

#[cfg(feature = "js")]
Expand All @@ -36,7 +36,7 @@ pub fn error(s: &str) {

#[cfg(not(feature = "js"))]
pub fn error(s: &str) {
eprintln!("{}", s);
eprintln!("{s}");
}

#[cfg(feature = "js")]
Expand All @@ -46,5 +46,5 @@ pub fn warn(s: &str) {

#[cfg(not(feature = "js"))]
pub fn warn(s: &str) {
eprintln!("{}", s);
eprintln!("{s}");
}

0 comments on commit f0473e3

Please sign in to comment.