Skip to content

Commit

Permalink
pyembed: call to_vec() to appease Rust 1.41
Browse files Browse the repository at this point in the history
We need to explicitly coerce the types because Rust 1.41 isn't linking
the type mismatch.
  • Loading branch information
indygreg committed Nov 2, 2020
1 parent d7360ea commit 56aa8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyembed/src/test/interpreter_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ rusty_fork_test! {
let value_raw = argvb.get_item(py, 0);
let value_bytes = value_raw.cast_as::<PyBytes>(py).unwrap();
assert_eq!(
value_bytes.data(py),
value_bytes.data(py).to_vec(),
if cfg!(windows) {
// UTF-16.
b"\x4e\x2d\x65\x87".to_vec()
Expand Down

0 comments on commit 56aa8b6

Please sign in to comment.