fn save_managed_paths(
    directory: &dyn Directory,
    wlock: &RwLockWriteGuard<'_, MetaInformation>,
) -> io::Result<()> {
    let mut w = serde_json::to_vec(&wlock.managed_paths)?;
    writeln!(&mut w)?;
    directory.atomic_write(&MANAGED_FILEPATH, &w[..])?;
    Ok(())
}
/// Saves the file containing the list of existing files
/// that were created by tantivy.
Saves the file containing the list of existing files
that were created by tantivy.
Saves the file containing the list of existing files that were created by tantivy .
fn save_managed_paths(
    directory: &dyn Directory,
    wlock: &RwLockWriteGuard<'_, MetaInformation>,
) -> io::Result<()> {
    let mut w = serde_json::to_vec(&wlock.managed_paths)?;
    writeln!(&mut w)?;
    directory.atomic_write(&MANAGED_FILEPATH, &w[..])?;
    Ok(())
}
fn save_managed_paths ( directory : & dyn Directory , wlock : & RwLockWriteGuard < ' _ , MetaInformation > , ) -> io :: Result < ( ) > { let mut w = serde_json :: to_vec ( & wlock . managed_paths ) ? ; writeln ! ( mut w ) ? ; directory . atomic_write ( & MANAGED_FILEPATH , & w [ .. ] ) ? ; Ok ( ( ) ) }
Saves the file containing the list of existing files
that were created by tantivy.
Saves the file containing the list of existing files that were created by tantivy .
directory
&dyn Directory
wlock
&RwLockWriteGuard<'_, MetaInformation>
directory
&dyn Directory
wlock
&RwLockWriteGuard<'_, MetaInformation>