Skip to content

Commit

Permalink
Fix test compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Sep 14, 2023
1 parent 3e353c0 commit b622037
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/runtime/ownership/borrowing-duplicate-if-necessary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Guest for Exports {
lists::foo(value)
);

thing_in::bar(thing_in::Thing {
thing_in::bar(&thing_in::Thing {
name: "thing 1",
value: &["some value", "another value"],
});
Expand All @@ -38,7 +38,7 @@ impl Guest for Exports {
name: "thing 1".to_owned(),
value: vec!["some value".to_owned(), "another value".to_owned()],
},
thing_in_and_out::baz(value)
thing_in_and_out::baz(&value)
);
}
}
2 changes: 1 addition & 1 deletion tests/runtime/ownership/borrowing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl Guest for Exports {
lists::foo(value)
);

thing_in::bar(thing_in::Thing {
thing_in::bar(&thing_in::Thing {
name: "thing 1",
value: &["some value", "another value"],
});
Expand Down

0 comments on commit b622037

Please sign in to comment.