From e26b8ebb04555996c4e9de299ed9f26cd2177650 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Tue, 6 Feb 2024 21:57:44 -0500 Subject: [PATCH] use io::Error::Other --- cargo-pgrx/src/command/init.rs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/cargo-pgrx/src/command/init.rs b/cargo-pgrx/src/command/init.rs index 826432625..5ea831743 100644 --- a/cargo-pgrx/src/command/init.rs +++ b/cargo-pgrx/src/command/init.rs @@ -449,15 +449,12 @@ fn configure_postgres(pg_config: &PgConfig, pgdir: &Path, init: &Init) -> eyre:: if output.status.success() { Ok(()) } else { - Err(std::io::Error::new( - std::io::ErrorKind::Other, - format!( - "{}\n{}{}", - command_str, - String::from_utf8(output.stdout).unwrap(), - String::from_utf8(output.stderr).unwrap() - ), - ))? + Err(std::io::Error::other(format!( + "{}\n{}{}", + command_str, + String::from_utf8(output.stdout).unwrap(), + String::from_utf8(output.stderr).unwrap() + )))? } }