File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2626// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2727// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
29- use bp3d_protoc:: api:: core:: Error ;
3029use bp3d_protoc:: api:: core:: loader:: Loader ;
30+ use bp3d_protoc:: api:: core:: Error ;
3131use bp3d_protoc:: gen:: RustImportSolver ;
3232
3333const ZERO_ENUM : & str = "
@@ -47,8 +47,5 @@ fn zero_enum() {
4747 let mut loader = Loader :: new ( 1 ) ;
4848 loader. load_from_string ( ZERO_ENUM , "" ) . unwrap ( ) ;
4949 let err = loader. compile ( & RustImportSolver ) . unwrap_err ( ) ;
50- assert ! ( matches!(
51- err,
52- Error :: Compiler ( bp3d_protoc:: compiler:: Error :: ZeroEnum )
53- ) ) ;
50+ assert ! ( matches!( err, Error :: Compiler ( bp3d_protoc:: compiler:: Error :: ZeroEnum ) ) ) ;
5451}
You can’t perform that action at this time.
0 commit comments