File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -170,20 +170,18 @@ macro_rules! pubkey {
170170#[ macro_export]
171171macro_rules! declare_id {
172172 ( $id: expr ) => {
173- use $crate:: reexport:: Pubkey ;
174-
175173 #[ doc = "The constant program ID." ]
176- pub const ID : Pubkey = $crate:: from_str( $id) ;
174+ pub const ID : $crate :: reexport :: Pubkey = $crate:: from_str( $id) ;
177175
178176 #[ doc = "Returns `true` if given pubkey is the program ID." ]
179177 #[ inline]
180- pub fn check_id( id: & Pubkey ) -> bool {
178+ pub fn check_id( id: & $crate :: reexport :: Pubkey ) -> bool {
181179 id == & ID
182180 }
183181
184182 #[ doc = "Returns the program ID." ]
185183 #[ inline]
186- pub const fn id( ) -> Pubkey {
184+ pub const fn id( ) -> $crate :: reexport :: Pubkey {
187185 ID
188186 }
189187 } ;
You can’t perform that action at this time.
0 commit comments