Add implement Default on types with ::new

This fixes a clippy lint warning
This commit is contained in:
Sashanoraa
2025-03-26 00:21:40 -04:00
committed by Will Greenberg
parent 034e0632e4
commit 04652d2097
3 changed files with 18 additions and 0 deletions

View File

@@ -12,6 +12,12 @@ pub struct RuntimeMetadata {
pub arch: String,
}
impl Default for RuntimeMetadata {
fn default() -> Self {
Self::new()
}
}
impl RuntimeMetadata {
/// Return the binary and system information, attempting to retrieve
/// attributes from `uname(2)` and falling back to values from