From b0e665f5436e08e4fd7446a59b87ac28f562a601 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 9 Feb 2020 23:54:24 +0100 Subject: refactoring using cargo clippy --- src/componentwrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index c60c23f..c21d263 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -91,7 +91,7 @@ components!( }; Blocking () {Blocking}; Floor () {Floor}; - Player (name: String) {Player::new(name.to_string())}; + Player (name: String) {Player::new(name)}; Item (ent: Template) {Item{ent}}; Inventory () {Inventory::default()} -- cgit