summaryrefslogtreecommitdiff
path: root/systems/_asset/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-14 00:17:02 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-14 00:17:02 +0800
commit709629d5d3ab856d9711aedbe32ceaafac5369af (patch)
tree98be25d144bd2c451c5c3dc0df215c7b010db9d9 /systems/_asset/src
parentd213a4258ff6dd3475dbde8c98440735bade19fd (diff)
Add framework system and refactor module exports
Diffstat (limited to 'systems/_asset/src')
-rw-r--r--systems/_asset/src/rw.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/systems/_asset/src/rw.rs b/systems/_asset/src/rw.rs
index 784d44d..9a46144 100644
--- a/systems/_asset/src/rw.rs
+++ b/systems/_asset/src/rw.rs
@@ -3,8 +3,6 @@ use std::path::PathBuf;
use crate::error::{DataReadError, DataWriteError};
pub trait RWData<DataType> {
- type DataType;
-
/// Implement read logic
/// Given a path, return the specific data
fn read(path: &PathBuf) -> impl Future<Output = Result<DataType, DataReadError>> + Send + Sync;
@@ -37,7 +35,6 @@ macro_rules! ensure_eq {
}
};
}
-
// Test Data
pub struct FooData {
pub age: i32,
@@ -45,8 +42,6 @@ pub struct FooData {
}
impl RWData<FooData> for FooData {
- type DataType = FooData;
-
async fn read(path: &PathBuf) -> Result<FooData, DataReadError> {
let content = tokio::fs::read_to_string(path)
.await