mirror of
https://git.asonix.dog/asonix/activitystreams.git
synced 2024-11-28 23:01:01 +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)?;
|
let page: Page = serde_json::from_str(page_json)?;
|
||||||
println!("{:#?}", page);
|
println!("{:#?}", page);
|
||||||
let obox: ObjectBox = page.into();
|
let obox = ObjectBox::from_concrete(page)?;
|
||||||
println!("{:#?}", obox);
|
println!("{:#?}", obox);
|
||||||
let obox_string = serde_json::to_string(&obox)?;
|
let obox_string = serde_json::to_string(&obox)?;
|
||||||
println!("{}", obox_string);
|
println!("{}", obox_string);
|
||||||
|
|
Loading…
Reference in a new issue