Skip to content

Commit

Permalink
test: fix a couple failing doc-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-da committed Oct 15, 2024
1 parent eb70244 commit b3a0bf0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/database/storage/storage_schema/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ use crate::locks::tokio::LockCallbackFn;
///
/// # Example:
///
/// ```compile_fail
/// ```
/// # // note: compile_fail due to: https://github.com/rust-lang/rust/issues/67295
/// # tokio_test::block_on(async {
/// # use database::storage::{storage_vec::traits::*, storage_schema::{SimpleRustyStorage, traits::*}};
/// # let db = database::NeptuneLevelDb::open_new_test_database(true, None, None, None).await.unwrap();
/// # use neptune_core::database::storage::{storage_vec::traits::*, storage_schema::{SimpleRustyStorage, traits::*}};
/// # let db = neptune_core::database::NeptuneLevelDb::open_new_test_database(true, None, None, None).await.unwrap();
/// use neptune_core::locks::tokio::AtomicRw;
///
/// let mut storage = SimpleRustyStorage::new(db);
Expand Down
4 changes: 2 additions & 2 deletions src/models/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ impl GlobalState {
/// result in loss of funds!
///
/// The `change_utxo_notify_method` parameter should normally be
/// [UtxoNotifyMethod::OnChain] for safest transfer.
/// [UtxoNotificationMedium::OnChain] for safest transfer.
///
/// The change_key should normally be a [SpendingKey::Symmetric] in
/// order to save blockchain space compared to a regular address.
Expand All @@ -595,7 +595,7 @@ impl GlobalState {
///
/// Example:
///
/// ```compile_fail
/// ```text
///
/// // obtain a change key
/// // note that this is a SymmetricKey, not a regular (Generation) address.
Expand Down

0 comments on commit b3a0bf0

Please sign in to comment.