Skip to content

Commit 4a6e310

Browse files
committed
refactor: update view pattern test syntax
1 parent 719f098 commit 4a6e310

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bytes/view_pattern_test.mbt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
1615
test "View::pattern" {
1716
let view = b"\x01\x02\x03"[:]
1817
match view {
19-
[0x01, 0x02, ..rest] => {
20-
inspect!(rest, content="b\"\\x03\"")
21-
}
18+
[0x01, 0x02, .. rest] => inspect!(rest, content="b\"\\x03\"")
2219
_ => abort("should not happen")
2320
}
2421
}

0 commit comments

Comments
 (0)