Skip to content

Commit fc15ec9

Browse files
committed
remove usages of 'impl From<&'a [u8; N]> for text::Reader'
1 parent c2032f7 commit fc15ec9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

capnpc/test/test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ mod tests {
413413

414414
{
415415
let text_list_list = test_complex_list.reborrow().init_text_list_list(1);
416-
text_list_list.init(0, 1).set(0, b"abc".into());
416+
text_list_list.init(0, 1).set(0, "abc".into());
417417
}
418418

419419
{
@@ -571,7 +571,7 @@ mod tests {
571571

572572
{
573573
let mut sub_builder = test_defaults.reborrow().get_struct_field().unwrap();
574-
sub_builder.set_text_field(b"garply".into());
574+
sub_builder.set_text_field("garply".into());
575575
}
576576

577577
assert_eq!(test_defaults.reborrow().get_bool_field(), false);
@@ -778,7 +778,7 @@ mod tests {
778778

779779
// Check setters
780780

781-
test_set.set_text(b"foo".into());
781+
test_set.set_text("foo".into());
782782
test_set.set_data(&[42]);
783783
{
784784
let mut b = test_set.reborrow().init_list(3);
@@ -790,7 +790,7 @@ mod tests {
790790
test_set
791791
.reborrow()
792792
.init_simple_struct()
793-
.set_field(b"buzz".into());
793+
.set_field("buzz".into());
794794
{
795795
let mut b = test_set.reborrow().init_any();
796796
b.set_as("dyn")?;

0 commit comments

Comments
 (0)