refactor!: moved quest::error::QuestError to crate::error::Error
This commit is contained in:
parent
a0bec4003c
commit
1dc7d94785
5 changed files with 49 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use squad_quest::{config::Config,quest::{error::{QuestError}, Quest}};
|
||||
use squad_quest::{config::Config,error::Error,quest::Quest};
|
||||
use std::path::PathBuf;
|
||||
|
||||
const CONFIG_PATH: &str = "tests/io/config.toml";
|
||||
|
|
@ -7,7 +7,7 @@ const CONFIG_PATH: &str = "tests/io/config.toml";
|
|||
// and Quest::save can override files,
|
||||
// so this test covers full quest CRUD
|
||||
#[test]
|
||||
fn quest_crud() -> Result<(), QuestError> {
|
||||
fn quest_crud() -> Result<(), Error> {
|
||||
let config = Config::load(CONFIG_PATH.into());
|
||||
|
||||
let mut quests_path = PathBuf::from(CONFIG_PATH).parent().unwrap().to_owned();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue