Skip to content

Commit

Permalink
Make Matrix2D serializable with serde.
Browse files Browse the repository at this point in the history
Needed to make Servo's canvas task messages serializable.
  • Loading branch information
pcwalton committed Jul 14, 2015
1 parent 4a6c325 commit 699b53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrix2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use rect::Rect;
use size::Size2D;
use std::ops::{Add, Mul, Sub};

#[derive(Clone, Copy)]
#[derive(Clone, Copy, Deserialize, Serialize)]
pub struct Matrix2D<T> {
m11: T, m12: T,
m21: T, m22: T,
Expand Down

0 comments on commit 699b53a

Please sign in to comment.