Skip to content

Commit

Permalink
Update for rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaka committed Nov 7, 2014
1 parent f80dd7b commit 0267f3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Expand Up @@ -63,7 +63,7 @@ The results contain the list of sprites that need to be drawn, with their matrix
# let textures_list: HashMap<&str, int> = unsafe { std::mem::uninitialized() };
# fn draw<A,B,C>(_: A, _: B, _: C) {}
for (sprite_name, matrix, color) in results.sprites.into_iter() {
let texture = textures_list.find(&sprite_name).unwrap();
let texture = textures_list.get(&sprite_name).unwrap();
draw(texture, matrix, color);
}
```
Expand Down Expand Up @@ -129,7 +129,7 @@ impl SpineDocument {
/// Returns true if an animation is in the document.
pub fn has_animation(&self, name: &str) -> bool {
if let Some(ref list) = self.source.animations {
list.find(&name.to_string()).is_some()
list.get(&name.to_string()).is_some()
} else {
false
}
Expand All @@ -138,7 +138,7 @@ impl SpineDocument {
/// Returns true if a skin is in the document.
pub fn has_skin(&self, name: &str) -> bool {
if let Some(ref list) = self.source.skins {
list.find(&name.to_string()).is_some()
list.get(&name.to_string()).is_some()
} else {
false
}
Expand Down

0 comments on commit 0267f3c

Please sign in to comment.