We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07aec73 commit 460f121Copy full SHA for 460f121
src/fs/metadata.rs
@@ -44,11 +44,12 @@ pub struct Metadata {
44
45
impl From<Metadata> for Collection {
46
fn from(val: Metadata) -> Self {
47
- let col: Collection = Object::builder()
48
- .property("title", val.info.title)
49
- .property("description", val.info.description)
50
- .property("version", val.info.version)
51
- .build();
+ let col: Collection = Collection::new();
+ col.set_properties(&[
+ ("title", &val.info.title),
+ ("description", &val.info.description),
+ ("version", &val.info.version),
52
+ ]);
53
54
if let Some(variables) = val.variables {
55
for (variable_name, variable_info) in variables {
0 commit comments