From 81e356ca00c3e34ce3f2f599d8945c03f55d8145 Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Sat, 11 Jun 2022 15:37:33 -0700 Subject: [PATCH] Remove redundant clone --- crates/bevy_reflect/src/serde/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_reflect/src/serde/ser.rs b/crates/bevy_reflect/src/serde/ser.rs index eb7f7a8f8b08a..8cd925372cbd0 100644 --- a/crates/bevy_reflect/src/serde/ser.rs +++ b/crates/bevy_reflect/src/serde/ser.rs @@ -567,7 +567,7 @@ mod tests { value: String::from("I <3 Enums"), }; let serializer = ReflectSerializer::new(&value, ®istry); - let output = ron::ser::to_string_pretty(&serializer, config.clone()).unwrap(); + let output = ron::ser::to_string_pretty(&serializer, config).unwrap(); let expected = r#"{ "type": "bevy_reflect::serde::ser::tests::enum_should_serialize::MyEnum", "enum": {