Skip to content

Commit

Permalink
make Rect and Circle derive Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Aug 29, 2023
1 parent 9037be7 commit 0bc3eed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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)]
#[derive(Debug, Clone, Copy)]
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)]
#[derive(Debug, Clone, Copy)]
pub struct Rect {
pub start: Point,
pub end: Point,
Expand Down
2 changes: 1 addition & 1 deletion packages/svgbob/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
};

#[derive(Clone, Copy, Debug)]
pub struct Point(Point2<f32>);
pub struct Point(pub Point2<f32>);

impl Deref for Point {
type Target = Point2<f32>;
Expand Down

0 comments on commit 0bc3eed

Please sign in to comment.