remove some unnecessary imports and call them inline

This commit is contained in:
2020-04-18 10:46:07 +01:00
parent cc0780b9cd
commit c467489dd5
5 changed files with 16 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
use crate::{AnimationFrames, Image, Position, mock, from_base36, ToBase36, optional_data_line};
use crate::{AnimationFrames, Image, Position, from_base36, ToBase36, optional_data_line};
#[derive(Debug, Eq, PartialEq)]
pub struct Sprite {
@@ -101,12 +101,15 @@ fn test_sprite_from_string() {
include_str!("test-resources/sprite").to_string()
);
let expected = mock::sprite();
let expected = crate::mock::sprite();
assert_eq!(output, expected);
}
#[test]
fn test_sprite_to_string() {
assert_eq!(mock::sprite().to_string(), include_str!("test-resources/sprite").to_string());
assert_eq!(
crate::mock::sprite().to_string(),
include_str!("test-resources/sprite").to_string()
);
}