Skip to content

Commit 11399ae

Browse files
committed
Use literal designator
1 parent b2884ae commit 11399ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/pubkey/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,15 @@ pub use five8_const::decode_32_const;
22
pub use pinocchio;
33

44
#[macro_export]
5-
#[deprecated(since = "0.1.1", note = "Please use `from_str` function instead.")]
65
macro_rules! declare_pubkey {
7-
( $id:expr ) => {
6+
( $id:literal ) => {
87
$crate::decode($id)
98
};
109
}
1110

1211
#[macro_export]
1312
macro_rules! declare_id {
14-
( $id:expr ) => {
13+
( $id:literal ) => {
1514
#[doc = "The const program ID."]
1615
pub const ID: $crate::pinocchio::pubkey::Pubkey = $crate::from_str($id);
1716

0 commit comments

Comments
 (0)