diff --git a/Cargo.lock b/Cargo.lock index ac9abbd..d0b17ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -349,18 +349,18 @@ checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" [[package]] name = "serde" -version = "1.0.218" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" +checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.218" +version = "1.0.219" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" +checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 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());