You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set this as a bug because it's an unexpected behavior.
I'm able to complete all the tests without errors, even if I run those without a proper environment configuration - that is, I'm simply not following the instruction about setting all the TEST_* env variables, I just clone and run the tests.
❯ cargo test
warning: `&` without an explicit lifetime name cannot be used here
--> src/ledger_id.rs:30:31
|
30 | pub(crate) const MAINNET: &Self = Self::new(&[0]);| ^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010>
note: the lint level is defined here
--> src/lib.rs:28:5
|
28 | future_incompatible,
| ^^^^^^^^^^^^^^^^^^^
= note: `#[warn(elided_lifetimes_in_associated_constant)]` implied by `#[warn(future_incompatible)]`
help: use the `'static` lifetime |30 | pub(crate) const MAINNET: &'static Self = Self::new(&[0]);| +++++++warning: `&` without an explicit lifetime name cannot be used here --> src/ledger_id.rs:31:31|31 | pub(crate) const TESTNET: &Self = Self::new(&[1]);| ^| = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010>help: use the `'static` lifetime |31 | pub(crate) const TESTNET: &'static Self = Self::new(&[1]);| +++++++
warning: `&` without an explicit lifetime name cannot be used here
--> src/ledger_id.rs:32:34
|
32 | pub(crate) const PREVIEWNET: &Self = Self::new(&[2]);| ^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010>
help: use the `'static` lifetime |32 | pub(crate) const PREVIEWNET: &'static Self = Self::new(&[2]);| +++++++warning: `hedera` (lib) generated 3 warnings (run `cargo fix --lib -p hedera` to apply 3 suggestions)warning: `hedera` (lib test) generated 3 warnings (3 duplicates) Finished test [unoptimized + debuginfo] target(s) in 0.07s Running unittests src/lib.rs (target/debug/deps/hedera-b2a9b842a228b07a)running 735 tests[...]test result: ok. 735 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s Running tests/e2e/main.rs (target/debug/deps/e2e-dd223305682e6984)running 219 tests[...]test result: ok. 215 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 0.51s Doc-tests hederarunning 15 tests[...]test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.90s
Steps to reproduce
clone the repo with --recursive option
run cargo test
all tests pass
Additional context
No response
Hedera network
other
Version
0.23.0
Operating system
None
The text was updated successfully, but these errors were encountered:
Description
I set this as a bug because it's an unexpected behavior.
I'm able to complete all the tests without errors, even if I run those without a proper environment configuration - that is, I'm simply not following the instruction about setting all the
TEST_*
env variables, I just clone and run the tests.Steps to reproduce
--recursive
optioncargo test
Additional context
No response
Hedera network
other
Version
0.23.0
Operating system
None
The text was updated successfully, but these errors were encountered: