Skip to content

Commit

Permalink
Update ssh-key/src/public/sk.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tony Arcieri <[email protected]>
  • Loading branch information
jviki and tarcieri authored Mar 6, 2024
1 parent cde04aa commit 3c60619
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssh-key/src/public/sk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ pub struct SkEcdsaSha2NistP256 {
#[cfg(feature = "ecdsa")]
impl SkEcdsaSha2NistP256 {
/// Construct new instance of SkEcdsaSha2NistP256.
pub fn new(ec_point: EcdsaNistP256PublicKey, application: String) -> Self {
#[cfg(feature = "alloc")]
pub fn new(ec_point: EcdsaNistP256PublicKey, application: impl Into<String>) -> Self {
SkEcdsaSha2NistP256 {
ec_point: ec_point,
application: application,
Expand Down

0 comments on commit 3c60619

Please sign in to comment.