From 93e76fc5ea4ffeae081d91b4021803ea6b7d3cc0 Mon Sep 17 00:00:00 2001 From: Matthew Gordon Date: Fri, 4 Sep 2020 22:00:39 -0400 Subject: [PATCH] derive(Clone,Default,Debug) for Photon --- src/colour/photon.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/colour/photon.rs b/src/colour/photon.rs index 299c005..b2732c3 100644 --- a/src/colour/photon.rs +++ b/src/colour/photon.rs @@ -1,4 +1,5 @@ /// A quantum of light with a given wavelength and intensity +#[derive(Clone, Default, Debug)] pub struct Photon { /// The wavelength in nanometres pub wavelength: f64,