Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change(state): Allow opening the database in a read-only mode #8079

Merged
merged 12 commits into from
Dec 13, 2023

Simplify test storage code

ed19740
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

change(state): Allow opening the database in a read-only mode #8079

Simplify test storage code
ed19740
Select commit
Loading
Failed to load commit list.
GitHub Actions / Clippy (stable) Results failed Dec 12, 2023 in 0s

Clippy (stable) Results

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.74.1 (a28077b28 2023-12-04)
  • cargo 1.74.1 (ecb9851af 2023-10-18)
  • clippy 0.1.74 (a28077b 2023-12-04)

Annotations

Check failure on line 25 in zebra-scan/src/tests/vectors.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

unused import: `config::Config`

error: unused import: `config::Config`
  --> zebra-scan/src/tests/vectors.rs:25:5
   |
25 |     config::Config,
   |     ^^^^^^^^^^^^^^
   |
   = note: `-D unused-imports` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_imports)]`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

See this annotation in the file changed.

@github-actions github-actions / Clippy (stable) Results

failed to resolve: could not find `tests` in `storage`

error[E0433]: failed to resolve: could not find `tests` in `storage`
   --> zebra-scan/src/tests/vectors.rs:160:33
    |
160 |     let mut s = crate::storage::tests::new_test_storage(Network::Mainnet);
    |                                 ^^^^^ could not find `tests` in `storage`
    |
help: consider importing this module
    |
3   + use crate::storage::db::tests;
    |
help: if you import `tests`, refer to it directly
    |
160 -     let mut s = crate::storage::tests::new_test_storage(Network::Mainnet);
160 +     let mut s = tests::new_test_storage(Network::Mainnet);
    |