index: Format the file.
This commit is contained in:
parent
b75f9d75b6
commit
dc5f21562d
@ -164,11 +164,7 @@ impl Index {
|
|||||||
|
|
||||||
#[new]
|
#[new]
|
||||||
#[args(reuse = true)]
|
#[args(reuse = true)]
|
||||||
fn new(
|
fn new(schema: &Schema, path: Option<&str>, reuse: bool) -> PyResult<Self> {
|
||||||
schema: &Schema,
|
|
||||||
path: Option<&str>,
|
|
||||||
reuse: bool,
|
|
||||||
) -> PyResult<Self> {
|
|
||||||
let index = match path {
|
let index = match path {
|
||||||
Some(p) => {
|
Some(p) => {
|
||||||
let directory = MmapDirectory::open(p).map_err(to_pyerr)?;
|
let directory = MmapDirectory::open(p).map_err(to_pyerr)?;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user