Fix clippy lints for Rust 1.68
This commit is contained in:
parent
8f14b448d2
commit
1816c985fa
7 changed files with 18 additions and 54 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue