You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `ion_rs::Element: WriteAsIon` is not satisfied
--> src/bin/ion/commands/schema/validate.rs:234:26
|
234 | writer.write(ion_list![].with_annotations(["valid"]))
| ----- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `WriteAsIon` is not implemented for `ion_rs::Element`
| |
| required by a bound introduced by this call
|
note: required by a bound in `ion_rs::ValueWriter::write`
--> /Users/popematt/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ion-rs-1.0.0-rc.8/src/lazy/encoder/value_writer.rs:78:32
|
78 | fn write(self, value: impl WriteAsIon) -> IonResult<()> {
| ^^^^^^^^^^ required by this bound in `ValueWriter::write`
help: consider borrowing here
|
234 | writer.write(&ion_list![].with_annotations(["valid"]))
| +
More generally, it seems like WriteAsIon is implemented for references rather than owned values for a number of things in the data model. This is going to be a bit of a surprise to everyone who is starting to use ion-rust for the first time if we leave things the way they are.
The text was updated successfully, but these errors were encountered:
More generally, it seems like
WriteAsIon
is implemented for references rather than owned values for a number of things in the data model. This is going to be a bit of a surprise to everyone who is starting to useion-rust
for the first time if we leave things the way they are.The text was updated successfully, but these errors were encountered: