Fixes paru/yay -Pw return code error (#228)

This commit is contained in:
Thomas Schönauer
2022-11-29 06:49:26 +00:00
committed by GitHub
parent 70045fca29
commit 22ab07d88e
2 changed files with 5 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ impl Executor {
/// An extension of `status_checked` that allows you to set a sequence of codes
/// that can indicate success of a script
#[cfg_attr(windows, allow(dead_code))]
#[allow(dead_code)]
pub fn status_checked_with_codes(&mut self, codes: &[i32]) -> Result<()> {
match self {
Executor::Wet(c) => c.status_checked_with(|status| {