summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-09 23:54:24 +0100
committertroido <troido@protonmail.com>2020-02-09 23:54:24 +0100
commitb0e665f5436e08e4fd7446a59b87ac28f562a601 (patch)
treefcdeee5178606eadfe1e1b5744410bfd4fef260a /src/componentwrapper.rs
parentb9cfb78c20fd309929aae98f24acc8ba4a9a7481 (diff)
refactoring using cargo clippy
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs2
1 files changed, 1 insertions, 1 deletions
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()}