Skip to content

Commit

Permalink
Rename to bad_parser to save_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
2kai2kai2 committed May 29, 2024
1 parent c227597 commit d165bc2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/eu4_map.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::collections::HashMap;

use crate::bad_parser::SaveGame;
use crate::save_parser::SaveGame;
use anyhow::{anyhow, Result};
use image::{Rgb, RgbImage};
use imageproc::definitions::HasBlack;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
use std::io::Cursor;

use ab_glyph::FontRef;
use bad_parser::SaveGame;
use base64::Engine;
use map_parsers::from_cp1252;
use save_parser::SaveGame;
use stats_image::StatsImageDefaultAssets;
use wasm_bindgen::prelude::*;

use crate::map_parsers::MapAssets;

mod bad_parser;
mod eu4_date;
mod eu4_map;
mod map_parsers;
mod raw_parser;
mod save_parser;
mod stats_image;

macro_rules! log {
Expand Down
4 changes: 1 addition & 3 deletions src/raw_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,7 @@ impl<'a> RawEU4Value<'a> {

#[cfg(test)]
mod tests {
use std::fs::File;

use crate::{eu4_date::Month, map_parsers::from_cp1252};
use crate::eu4_date::Month;

use super::*;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/stats_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use image::{GenericImage, GenericImageView, Rgba, RgbaImage};
use imageproc::definitions::HasWhite;

use crate::{
bad_parser::{Nation, SaveGame, WarResult},
map_parsers::FlagImages,
save_parser::{Nation, SaveGame, WarResult},
Fetcher,
};
use imageproc::drawing;
Expand Down

0 comments on commit d165bc2

Please sign in to comment.