From 1f3b4026654d02730a5ccb0a8dcbe1792c69ced7 Mon Sep 17 00:00:00 2001 From: Pavel Kokolemin Date: Sat, 22 Mar 2025 14:23:25 +0400 Subject: [PATCH] Make AssetId::from_inner a const function --- src/issuance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/issuance.rs b/src/issuance.rs index 7454a767..de478e7b 100644 --- a/src/issuance.rs +++ b/src/issuance.rs @@ -76,7 +76,7 @@ impl AssetId { ])); /// Create an [AssetId] from its inner type. - pub fn from_inner(midstate: sha256::Midstate) -> AssetId { + pub const fn from_inner(midstate: sha256::Midstate) -> AssetId { AssetId(midstate) }