diff options
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) | 
