Skip to content

Commit

Permalink
Uses IonData instead of making IonEq pub
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Nov 2, 2023
1 parent 1db5b30 commit 158348e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions benches/read_many_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ use ion_rs::lazy::r#struct::LazyStruct;
use ion_rs::lazy::reader::{LazyApplicationReader, LazyTextReader_1_1};
use ion_rs::lazy::value::LazyValue;
use ion_rs::lazy::value_ref::ValueRef;
use ion_rs::ElementReader;
use ion_rs::IonEq;
use ion_rs::{Element, Format, IonReader, IonResult, TextKind};
use ion_rs::{Element, Format, IonResult, TextKind};
use ion_rs::{ElementReader, IonData};

fn rewrite_as_compact_text(pretty_ion: &str) -> IonResult<String> {
let values = Element::read_all(pretty_ion).unwrap();
Expand Down Expand Up @@ -62,7 +61,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
reader_1_1.register_template(template_text).unwrap();
let seq_1_1 = reader_1_1.read_all_elements().unwrap();
assert!(
seq_1_0.ion_eq(&seq_1_1),
IonData::eq(&seq_1_0, &seq_1_1),
"Ion 1.0 sequence was not equal to the Ion 1.1 sequence"
);

Expand Down
2 changes: 1 addition & 1 deletion src/ion_data/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub(crate) mod ion_eq;
mod ion_eq;
mod ion_ord;

use std::cmp::Ordering;
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ pub use element::{
reader::ElementReader, writer::ElementWriter, Annotations, Element, IntoAnnotatedElement,
IntoAnnotations, Sequence, Value,
};
pub use ion_data::ion_eq::IonEq;
pub use ion_data::IonData;
pub use symbol_ref::SymbolRef;
#[doc(inline)]
Expand Down

0 comments on commit 158348e

Please sign in to comment.