Skip to content

Commit 1c73f0a

Browse files
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 88c3f32 + 86f08f6 commit 1c73f0a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

compiler/tests/test_zero_enum.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
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;
3029
use bp3d_protoc::api::core::loader::Loader;
30+
use bp3d_protoc::api::core::Error;
3131
use bp3d_protoc::gen::RustImportSolver;
3232

3333
const 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
}

0 commit comments

Comments
 (0)