aboutsummaryrefslogtreecommitdiff
path: root/src/raw/types.rs
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2018-05-31 16:05:52 +0200
committerDaniel Schadt <kingdread@gmx.de>2018-05-31 16:05:52 +0200
commit2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 (patch)
treefeb1b11fbc1409214c7ef23299df9ea813888f6e /src/raw/types.rs
parent4f3aa33ad3c7012105ef897da62220131ac9289c (diff)
downloadevtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.gz
evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.bz2
evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.zip
cargo fmt
Diffstat (limited to 'src/raw/types.rs')
-rw-r--r--src/raw/types.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raw/types.rs b/src/raw/types.rs
index 9096a32..e3a80af 100644
--- a/src/raw/types.rs
+++ b/src/raw/types.rs
@@ -291,7 +291,8 @@ impl Skill {
///
/// Returns `None` if the name is not valid UTF-8.
pub fn name_string(&self) -> Option<String> {
- let bytes = self.name
+ let bytes = self
+ .name
.iter()
.cloned()
.take_while(|b| *b != 0)