diff --git a/zcash_client_sqlite/src/lib.rs b/zcash_client_sqlite/src/lib.rs index 60c96d831..4a9cc7b44 100644 --- a/zcash_client_sqlite/src/lib.rs +++ b/zcash_client_sqlite/src/lib.rs @@ -38,7 +38,7 @@ use maybe_rayon::{ }; use rusqlite::{self, Connection}; use secrecy::{ExposeSecret, SecretVec}; -use std::{borrow::Borrow, collections::HashMap, convert::AsRef, ops::Range, path::Path}; +use std::{borrow::Borrow, collections::HashMap, convert::AsRef, fmt, ops::Range, path::Path}; use incrementalmerkletree::Position; use shardtree::{error::ShardTreeError, ShardTree}; @@ -101,6 +101,14 @@ pub(crate) const SAPLING_TABLES_PREFIX: &str = "sapling"; #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct ReceivedNoteId(pub(crate) i64); +impl fmt::Display for ReceivedNoteId { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + match self { + ReceivedNoteId(id) => write!(f, "Received Note {}", id), + } + } +} + /// A newtype wrapper for sqlite primary key values for the utxos /// table. #[derive(Debug, Copy, Clone, PartialEq, Eq)]