fix: fixing file_repository for new dyn layout, updating readme, deleting unused From for PrimaryKeyType
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user