From 73f263682ec2715da3804bb134aab68cdc5f63ca Mon Sep 17 00:00:00 2001 From: Matthew Watt Date: Tue, 10 Oct 2023 07:50:07 -0500 Subject: [PATCH] Remove unnecessary local --- zcash_client_sqlite/src/wallet.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zcash_client_sqlite/src/wallet.rs b/zcash_client_sqlite/src/wallet.rs index 35d9c0a84..01ec36faa 100644 --- a/zcash_client_sqlite/src/wallet.rs +++ b/zcash_client_sqlite/src/wallet.rs @@ -759,8 +759,7 @@ pub(crate) fn get_received_memo( conn: &rusqlite::Connection, note_id: NoteId, ) -> Result, SqliteClientError> { - let protocol = note_id.protocol(); - let memo_bytes: Option> = match protocol { + let memo_bytes: Option> = match note_id.protocol() { ShieldedProtocol::Sapling => conn .query_row( "SELECT memo FROM sapling_received_notes @@ -777,7 +776,7 @@ pub(crate) fn get_received_memo( .flatten(), _ => { return Err(SqliteClientError::UnsupportedPoolType(PoolType::Shielded( - protocol, + note_id.protocol(), ))) } };