From 10fad5081df1aae5c44920a8ccce2859302b3485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20de=20B=C3=BArca?= Date: Thu, 3 Apr 2025 18:43:27 -0700 Subject: [PATCH] nouveau: implement `Default` for `Push` By convention, a struct with a `new()` method which has no parameters should have a `Default` impl which calls `new()`. Reviewed-by: Faith Ekstrand Part-of: --- src/nouveau/headers/nv_push_rs/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nouveau/headers/nv_push_rs/lib.rs b/src/nouveau/headers/nv_push_rs/lib.rs index daa0957ec5c..d845366cc74 100644 --- a/src/nouveau/headers/nv_push_rs/lib.rs +++ b/src/nouveau/headers/nv_push_rs/lib.rs @@ -213,6 +213,12 @@ impl Push { } } +impl Default for Push { + fn default() -> Self { + Self::new() + } +} + impl std::ops::Deref for Push { type Target = [u32];