diff --git a/Cargo.toml b/Cargo.toml index ec8e8b9..513a414 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pinentry-util" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Hatter Jiang"] repository = "https://git.hatter.ink/hatter/pinentry-util" diff --git a/src/lib.rs b/src/lib.rs index b414efc..5d92315 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,6 +21,10 @@ impl Pin { fn from(pin: String) -> Self { Self { pin } } + + pub fn get_pin(&self) -> &str { + &self.pin + } } impl Debug for Pin {