remove some unnecessary imports and call them inline
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user