Skip to content

Commit 1f3b402

Browse files
Make AssetId::from_inner a const function
1 parent 51028fa commit 1f3b402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/issuance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl AssetId {
7676
]));
7777

7878
/// Create an [AssetId] from its inner type.
79-
pub fn from_inner(midstate: sha256::Midstate) -> AssetId {
79+
pub const fn from_inner(midstate: sha256::Midstate) -> AssetId {
8080
AssetId(midstate)
8181
}
8282

0 commit comments

Comments
 (0)