fix: fixing file_repository for new dyn layout, updating readme, deleting unused From for PrimaryKeyType

This commit is contained in:
2024-06-01 20:48:36 +02:00
parent 75de8c4adb
commit f57f58818f
3 changed files with 39 additions and 26 deletions

View File

@@ -326,16 +326,6 @@ pub mod repository {
}
}
impl From<String> for Box<dyn PrimaryKeyType> {
fn from(s: String) -> Box<dyn PrimaryKeyType> {
if let Ok(i) = s.parse::<i64>() {
Box::new(i)
} else {
Box::new(s)
}
}
}
#[async_trait]
pub trait AdminRepository: Send + Sync {
type Key: PrimaryKeyType;