martin-g commented on a change in pull request #1340:
URL: https://github.com/apache/avro/pull/1340#discussion_r713742245
##########
File path: lang/rust/tests/schema.rs
##########
@@ -19,6 +19,13 @@
use avro_rs::{schema::Name, Error, Schema};
use lazy_static::lazy_static;
+fn init() {
Review comment:
The idea is that it might be used for other needs later.
Too bad Rust Testing does not provide something like `before()/after()`,
`beforeAll()/afterAll()`.
Using `ctor` crate looks OK-ish
(https://stackoverflow.com/questions/58006033/how-to-run-setup-code-before-any-tests-run-in-rust)
but it is one more dev-dependency and it helps only for the `before()` need.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]