fn ensure_map(&self) -> Result<(), Error> {
        let mut map = self.map.borrow_mut();
        if (*map).is_none() {
            *map = Some(
                bincode::deserialize(self.index)
                    .map_err(|e| Error::DeserializeAssets(e.to_string()))?,
            );
        }
        Ok(())
    }
// Lazily deserialize map, so we don't bother doing so
// when handling urls that aren't for static assets
Lazily deserialize map, so we don't bother doing so
when handling urls that aren't for static assets
Lazily deserialize map so we don ' t bother doing so when handling urls that aren ' t for static assets
fn ensure_map(&self) -> Result<(), Error> {
        let mut map = self.map.borrow_mut();
        if (*map).is_none() {
            *map = Some(
                bincode::deserialize(self.index)
                    .map_err(|e| Error::DeserializeAssets(e.to_string()))?,
            );
        }
        Ok(())
    }
fn ensure_map ( & self ) -> Result < ( ) , Error > { let mut map = self . map . borrow_mut ( ) ; if ( * map ) . is_none ( ) { * map = Some ( bincode :: deserialize ( self . index ) . map_err ( | e | Error :: DeserializeAssets ( e . to_string ( ) ) ) ? , ) ; } Ok ( ( ) ) }
Lazily deserialize map, so we don't bother doing so
when handling urls that aren't for static assets
Lazily deserialize map so we don ' t bother doing so when handling urls that aren ' t for static assets
&self
&self