Skip to content

Commit

Permalink
fix: don't need Rect and Circle to be copy, Clone is enough and explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Aug 31, 2023
1 parent 0bc3eed commit 886e599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use sauron::{
};

/// TODO: Add an is_broken field when there is a presence of `~` or `!` in the span
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone)]
pub struct Circle {
pub radius: f32,
pub center: Point,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use sauron::{
};
use std::{cmp::Ordering, fmt};

#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone)]
pub struct Rect {
pub start: Point,
pub end: Point,
Expand Down

0 comments on commit 886e599

Please sign in to comment.