Skip to content

Commit eedff19

Browse files
authored
Merge pull request #51 from Ximik/minor-fixes
minor fixes
2 parents c822c60 + 516967b commit eedff19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

node/src/bin/space-cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ async fn handle_commands(
400400
}
401401
Commands::EstimateBid { target } => {
402402
let response = cli.client.estimate_bid(target).await?;
403-
println!("{} sat", Amount::from_sat(response).to_string());
403+
println!("{} sat", Amount::from_sat(response).to_sat());
404404
}
405405
Commands::GetSpace { space } => {
406406
let space_hash = hash_space(&space).map_err(|e| ClientError::Custom(e.to_string()))?;

protocol/src/slabel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::errors::Error;
1414
pub const MAX_LABEL_LEN: usize = 62;
1515
pub const PUNYCODE_PREFIX: &[u8] = b"xn--";
1616

17-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
17+
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
1818
pub struct SLabel([u8; MAX_LABEL_LEN + 1]);
1919

2020
#[cfg(feature = "bincode")]
@@ -87,7 +87,7 @@ impl<'de> Deserialize<'de> for SLabel {
8787
}
8888
}
8989

90-
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord)]
90+
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
9191
pub struct SLabelRef<'a>(pub &'a [u8]);
9292

9393
impl AsRef<[u8]> for SLabel {

0 commit comments

Comments
 (0)