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, mock, from_base36, ToBase36, optional_data_line};
use crate::{AnimationFrames, Image, from_base36, ToBase36, optional_data_line};
#[derive(Debug, Eq, PartialEq)]
pub struct Item {
@@ -75,13 +75,13 @@ impl ToString for Item {
#[test]
fn test_item_from_string() {
let output = Item::from(include_str!("test-resources/item").to_string());
let expected = mock::item();
let expected = crate::mock::item();
assert_eq!(output, expected);
}
#[test]
fn test_item_to_string() {
let output = mock::item().to_string();
let output = crate::mock::item().to_string();
let expected = include_str!("test-resources/item").to_string();
assert_eq!(output, expected);
}