mitsuhiko / insta

A snapshot testing library for rust
https://insta.rs
Apache License 2.0
2.26k stars 102 forks source link

Remove some methods from `SnapshotContents` #640

Closed max-sixty closed 1 month ago

max-sixty commented 1 month ago

Since the binary snapshots have merged, there are some methods which return Some if the enum is a certain variant. We can just use pattern matching for that.

(Note that the code is a bit complicated and has lots of repetition of 'kind'-like fields; but wanted to merge the binary snapshots feature before cleaning up the internals