Skip to content

Commit 815738f

Browse files
committed
Fix alloc/ToString error
1 parent 345a45c commit 815738f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ fn test_sizes() {
495495

496496
#[test]
497497
fn test_encode_decode_format() {
498+
use alloc::string::ToString;
499+
498500
assert_eq!(
499501
ShapeError::invalid_axis(1, 0).to_string(),
500502
"ShapeError/OutOfBounds: out of bounds indexing; expected: 1, but got: 0");

0 commit comments

Comments
 (0)