From 2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 31 May 2018 16:05:52 +0200 Subject: cargo fmt --- src/raw/mod.rs | 6 ++++-- src/raw/types.rs | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/raw') 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 { - let bytes = self.name + let bytes = self + .name .iter() .cloned() .take_while(|b| *b != 0) -- cgit v1.2.3