mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-25 05:11:03 +00:00
Make de example work
This commit is contained in:
parent
c6a0027e7a
commit
aa8c4f9c1d
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ fn main() -> Result<(), Error> {
|
|||
|
||||
let page: Page = serde_json::from_str(page_json)?;
|
||||
println!("{:#?}", page);
|
||||
let obox: ObjectBox = page.into();
|
||||
let obox = ObjectBox::from_concrete(page)?;
|
||||
println!("{:#?}", obox);
|
||||
let obox_string = serde_json::to_string(&obox)?;
|
||||
println!("{}", obox_string);
|
||||
|
|
Loading…
Reference in a new issue