mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2025-12-23 02:29:57 +00:00
use <T: Into<Box<dyn Directory>>> as parameter to open/create an Index
This is done in order to support Box<dyn Directory> additionally to generic implementations of the trait Directory. Remove boxing in ManagedDirectory.
This commit is contained in:
@@ -10,7 +10,7 @@ fn test_failpoints_managed_directory_gc_if_delete_fails() {
|
||||
|
||||
let test_path: &'static Path = Path::new("some_path_for_test");
|
||||
|
||||
let ram_directory = RamDirectory::create();
|
||||
let ram_directory = Box::new(RamDirectory::create());
|
||||
let mut managed_directory = ManagedDirectory::wrap(ram_directory).unwrap();
|
||||
managed_directory
|
||||
.open_write(test_path)
|
||||
|
||||
Reference in New Issue
Block a user