Skip to content
Snippets Groups Projects

[fix] gva: use once_cell to init db handler without unsafe code

Closed Éloïs requested to merge elois/186 into dev
14 files
+ 69
28
Compare changes
  • Side-by-side
  • Inline

Files

@@ -81,6 +81,12 @@ pub struct BcDbRwWithWriter<'w, 'db: 'w> {
@@ -81,6 +81,12 @@ pub struct BcDbRwWithWriter<'w, 'db: 'w> {
pub w: &'w DbWriter<'w>,
pub w: &'w DbWriter<'w>,
}
}
 
impl<'w, 'db: 'w> std::fmt::Debug for BcDbRwWithWriter<'w, 'db> {
 
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
 
write!(f, "BcDbRwWithWriter {{}}")
 
}
 
}
 
impl<'w, 'db: 'w> durs_bc_db_reader::BcDbWithReader for BcDbRwWithWriter<'w, 'db> {
impl<'w, 'db: 'w> durs_bc_db_reader::BcDbWithReader for BcDbRwWithWriter<'w, 'db> {
type DB = Db;
type DB = Db;
type R = DbWriter<'w>;
type R = DbWriter<'w>;
Loading