Skip to content

Commit

Permalink
Move disk cache out of demo module
Browse files Browse the repository at this point in the history
  • Loading branch information
rmburg committed Sep 12, 2024
1 parent d4b60bc commit 6839bb9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src-tauri/src/demo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use self::{
pub use self::error::Error;

pub mod analyser;
pub mod cache;
pub mod error;

pub const HEADER_SIZE: usize = 8 + 4 + 4 + 260 + 260 + 260 + 260 + 4 + 4 + 4 + 4;
Expand Down
3 changes: 2 additions & 1 deletion src-tauri/src/demo_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ use serde::Deserialize;

use crate::{
demo::{
analyser::GameSummary, cache::DiskCache, error::Result, read_demo, read_demo_details,
analyser::GameSummary, error::Result, read_demo, read_demo_details,
read_demos_in_directory, write_events_and_tags, Demo, DemoEvent, Error,
},
disk_cache::DiskCache,
std_ext::OrTryInsertWith,
};

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use demo_cache::DemoCache;
mod commands;
mod demo;
mod demo_cache;
mod disk_cache;
mod std_ext;

#[cfg(test)]
Expand Down

0 comments on commit 6839bb9

Please sign in to comment.