mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
Add implement Default on types with ::new
This fixes a clippy lint warning
This commit is contained in:
committed by
Will Greenberg
parent
034e0632e4
commit
04652d2097
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user