diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-05-31 16:05:52 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-05-31 16:05:52 +0200 |
commit | 2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 (patch) | |
tree | feb1b11fbc1409214c7ef23299df9ea813888f6e /src/raw | |
parent | 4f3aa33ad3c7012105ef897da62220131ac9289c (diff) | |
download | evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.gz evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.tar.bz2 evtclib-2d8c0f26c71e90e30d8aef35f7ae95003abf13d6.zip |
cargo fmt
Diffstat (limited to 'src/raw')
-rw-r--r-- | src/raw/mod.rs | 6 | ||||
-rw-r--r-- | src/raw/types.rs | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/raw/mod.rs b/src/raw/mod.rs index 4b32955..7cbe483 100644 --- a/src/raw/mod.rs +++ b/src/raw/mod.rs @@ -6,8 +6,10 @@ //! functions whenever possible. mod types; -pub use self::types::{Agent, CbtActivation, CbtBuffRemove, CbtCustomSkill, CbtEvent, CbtResult, - CbtStateChange, Language, Skill, IFF}; +pub use self::types::{ + Agent, CbtActivation, CbtBuffRemove, CbtCustomSkill, CbtEvent, CbtResult, CbtStateChange, + Language, Skill, IFF, +}; pub mod parser; 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) |