Nothing
This commit is contained in:
parent
6eef3b9b66
commit
951f610cfd
3 changed files with 4 additions and 4 deletions
|
|
@ -67,7 +67,7 @@ impl<'de> Deserialize<'de> for Id20 {
|
|||
}
|
||||
|
||||
impl Id20 {
|
||||
pub fn to_string(&self) -> String {
|
||||
pub fn as_string(&self) -> String {
|
||||
hex::encode(self.0)
|
||||
}
|
||||
pub fn distance(&self, other: &Id20) -> Id20 {
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ mod tests {
|
|||
|
||||
let torrent: TorrentMetaV1Borrowed = torrent_from_bytes(&buf).unwrap();
|
||||
assert_eq!(
|
||||
torrent.info_hash.to_string(),
|
||||
torrent.info_hash.as_string(),
|
||||
"64a980abe6e448226bb930ba061592e44c3781a1"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue