refactor!: moved quest::error::QuestError to crate::error::Error

This commit is contained in:
Alexey 2025-12-01 17:15:08 +03:00
commit 1dc7d94785
5 changed files with 49 additions and 22 deletions

View file

@ -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();