Skip to content

Commit 8e02cfc

Browse files
committed
Use qualified import
1 parent 765cd7c commit 8e02cfc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

sdk/pubkey/src/lib.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,20 +170,18 @@ macro_rules! pubkey {
170170
#[macro_export]
171171
macro_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
};

0 commit comments

Comments
 (0)