clippy fix
This commit is contained in:
parent
3bfdf87277
commit
de208a20d5
2 changed files with 7 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ impl Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
pub fn get_invalid_param(&self) -> Option<&Parameter> {
|
pub fn get_invalid_param(&self) -> Option<&Parameter> {
|
||||||
if let Self::InvalidParameter(p) = self {
|
if let Self::InvalidParameter(p) = self {
|
||||||
Some(p)
|
Some(p)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,12 @@ use std::fmt;
|
||||||
use log::trace;
|
use log::trace;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
/// ID of a file in a Sharry share
|
||||||
|
///
|
||||||
|
/// - impl `Clone` as this is just a String
|
||||||
|
/// - impl `serde` for cachefile handling
|
||||||
|
/// - impl `Display` for formatting compatibility
|
||||||
|
/// - impl `AsRef<[u8]>` for hashing with `blake2b_simd`
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Uri(String);
|
pub struct Uri(String);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue