diff --git a/src/workspace/profile.rs b/src/workspace/profile.rs index 96e6fefd0adb09a96f6aad3caeb6f02f9059d0e7..df40e526863ee2e7d9b5f295515a507a40265475 100644 --- a/src/workspace/profile.rs +++ b/src/workspace/profile.rs @@ -72,7 +72,7 @@ pub enum OptLevel { } impl OptLevel { - fn to_toml_value(&self) -> value::Value { + fn to_toml_value(self) -> value::Value { match self { OptLevel::NoOptimizations => 0.into(), OptLevel::O1 => 1.into(), @@ -99,7 +99,7 @@ pub enum Lto { } impl Lto { - fn to_toml_value(&self) -> value::Value { + fn to_toml_value(self) -> value::Value { match self { Lto::ThinLocal => false.into(), Lto::Fat => "fat".into(), @@ -118,7 +118,7 @@ pub enum PanicStrategy { } impl PanicStrategy { - fn to_toml_value(&self) -> value::Value { + fn to_toml_value(self) -> value::Value { match self { PanicStrategy::Unwind => "unwind".into(), PanicStrategy::Abort => "abort".into(),