diff --git a/Cargo.lock b/Cargo.lock index ac9abbd..c567092 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "async-trait" -version = "0.1.86" +version = "0.1.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644dd749086bf3771a2fbc5f256fdb982d53f011c7d5d560304eafeecebce79d" +checksum = "d556ec1359574147ec0c4fc5eb525f3f23263a592b1a9c07e0a75b427de55c97" dependencies = [ "proc-macro2", "quote", diff --git a/crates/gh-workflow/src/generate.rs b/crates/gh-workflow/src/generate.rs index e1204f6..3906e94 100644 --- a/crates/gh-workflow/src/generate.rs +++ b/crates/gh-workflow/src/generate.rs @@ -1,7 +1,6 @@ //! This module provides functionality to customize generation of the GitHub //! Actions workflow files. -use std::io::ErrorKind; use std::path::PathBuf; use std::process::Command; @@ -70,7 +69,7 @@ impl Generate { } Err(Error::MissingWorkflowFile(path)) => { std::fs::create_dir_all(path.parent().ok_or(Error::IO( - std::io::Error::new(ErrorKind::Other, "Invalid parent dir(s) path"), + std::io::Error::other("Invalid parent dir(s) path"), ))?)?; std::fs::write(path.clone(), content)?; println!("Generated workflow file: {}", path.display());