Update to pyo3 0.15 (#40)

master
messense 2022-01-17 09:16:08 +08:00 committed by GitHub
parent 338ac950f1
commit a9e75e5c16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ itertools = "0.10.0"
futures = "0.3.5"
[dependencies.pyo3]
version = "0.14.5"
version = "0.15.1"
features = ["extension-module"]
[package.metadata.maturin]

View File

@ -1,3 +1,3 @@
fn main() {
pyo3_build_config::add_extension_module_link_args();
pyo3_build_config::add_extension_module_link_args();
}

View File

@ -180,9 +180,9 @@ impl Document {
if key_value.len() != 2 {
continue;
}
let key: String = key_value.get_item(0).extract()?;
let key: String = key_value.get_item(0)?.extract()?;
let value_list =
extract_value_single_or_list(key_value.get_item(1))?;
extract_value_single_or_list(key_value.get_item(1)?)?;
field_values.insert(key, value_list);
}
}
@ -199,9 +199,9 @@ impl Document {
if key_value.len() != 2 {
continue;
}
let key: String = key_value.get_item(0).extract()?;
let key: String = key_value.get_item(0)?.extract()?;
let value_list =
extract_value_single_or_list(key_value.get_item(1))?;
extract_value_single_or_list(key_value.get_item(1)?)?;
field_values.insert(key, value_list);
}
}