Remove needless arbitrary self type
This commit is contained in:
parent
67639e2f11
commit
a57778a232
|
@ -34,7 +34,7 @@ impl Resource {
|
||||||
/// using "Jones" coefficients. Changing go's polynomial to match rust's still doesn't make the hashes the same.
|
/// using "Jones" coefficients. Changing go's polynomial to match rust's still doesn't make the hashes the same.
|
||||||
/// We use the get_uid in this case for an identifier in the distributor so as long as it is unique, it doesn't
|
/// We use the get_uid in this case for an identifier in the distributor so as long as it is unique, it doesn't
|
||||||
/// strictly need to match the value in rdsys' backend.
|
/// strictly need to match the value in rdsys' backend.
|
||||||
pub fn get_uid(self: &Self) -> Result<u64, hex::FromHexError> {
|
pub fn get_uid(&self) -> Result<u64, hex::FromHexError> {
|
||||||
let hex_fingerprint = match hex::decode(self.fingerprint.clone()) {
|
let hex_fingerprint = match hex::decode(self.fingerprint.clone()) {
|
||||||
Ok(hex_fingerprint) => hex_fingerprint,
|
Ok(hex_fingerprint) => hex_fingerprint,
|
||||||
Err(e) => return Err(e),
|
Err(e) => return Err(e),
|
||||||
|
|
Loading…
Reference in New Issue