Fix clippy lints for Rust 1.68

This commit is contained in:
Héctor Ramón Jiménez 2023-03-14 11:11:17 +01:00
parent 8f14b448d2
commit 1816c985fa
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 18 additions and 54 deletions

View file

@ -9,9 +9,10 @@ use crate::triangle;
use std::sync::Arc;
/// A rendering primitive.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub enum Primitive {
/// An empty primitive
#[default]
None,
/// A group of primitives
Group {
@ -117,9 +118,3 @@ pub enum Primitive {
cache: Arc<Primitive>,
},
}
impl Default for Primitive {
fn default() -> Primitive {
Primitive::None
}
}