diff options
author | tom barrett <spalf0@gmail.com> | 2018-04-05 02:04:11 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-04-05 02:04:11 -0500 |
commit | 22ec8b31c66475f29106f2fda46969e427f2e704 (patch) | |
tree | f1f439b793ad93d49bee497e1e5675d177e2f65c /src/astroid.rs | |
parent | c297e871b7ce8935dd3bb1c65ecae37000d9a331 (diff) |
-changed how data is passed (learned you can serialize a vec) -added targeting struct to ship and got timer prototype
Diffstat (limited to 'src/astroid.rs')
-rw-r--r-- | src/astroid.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/astroid.rs b/src/astroid.rs index ffdeabf..5b2a3b3 100644 --- a/src/astroid.rs +++ b/src/astroid.rs @@ -44,7 +44,7 @@ impl Mass for Astroid { self.position } - fn serialize(&self) ->String { + fn serialize(&self) -> String { serde_json::to_string(self).unwrap() } |