Skip to content

Commit

Permalink
simplify text_comparisons test
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 11, 2024
1 parent 93ebd24 commit 3993ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp/tests/text_comparisons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub fn text_comparisons() {
let mut msg1 = message::Builder::new_default();
let mut msg2 = message::Builder::new_default();

msg1.set_root::<text::Reader>("abcde".into()).unwrap();
msg2.set_root::<text::Reader>("fghij".into()).unwrap();
msg1.set_root("abcde").unwrap();
msg2.set_root("fghij").unwrap();

let str1 = msg1.get_root_as_reader::<text::Reader>().unwrap();
let str2 = msg2.get_root_as_reader::<text::Reader>().unwrap();
Expand Down

0 comments on commit 3993ea2

Please sign in to comment.