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 <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34372>
This commit is contained in:
Seán de Búrca
2025-04-03 18:43:27 -07:00
committed by Marge Bot
parent f4f4b25d25
commit 10fad5081d
+6
View File
@@ -213,6 +213,12 @@ impl Push {
}
}
impl Default for Push {
fn default() -> Self {
Self::new()
}
}
impl std::ops::Deref for Push {
type Target = [u32];