clippy fix

This commit is contained in:
Jörn-Michael Miehe 2025-07-01 15:24:26 +00:00
parent 3bfdf87277
commit de208a20d5
2 changed files with 7 additions and 0 deletions

View file

@ -121,6 +121,7 @@ impl Error {
}
}
#[must_use]
pub fn get_invalid_param(&self) -> Option<&Parameter> {
if let Self::InvalidParameter(p) = self {
Some(p)

View file

@ -3,6 +3,12 @@ use std::fmt;
use log::trace;
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)]
pub struct Uri(String);