diff --git a/physx-sys/pxbind/src/dump.rs b/physx-sys/pxbind/src/dump.rs index 8a91de31..5970e900 100644 --- a/physx-sys/pxbind/src/dump.rs +++ b/physx-sys/pxbind/src/dump.rs @@ -67,7 +67,7 @@ pub fn get_ast(header: impl AsRef) -> anyhow::Result> { captured.status.success(), "clang++ failed to gather AST {:?}\n{}", captured.status, - String::from_utf8(captured.stderr).unwrap_or(String::new()), + String::from_utf8(captured.stderr).unwrap_or_default(), ); Ok(captured.stdout)