mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-22 14:04:46 +00:00
Remove missing_panic_doc (#561)
This commit is contained in:
parent
8d9619fb67
commit
e1d112dbab
4 changed files with 5 additions and 3 deletions
|
|
@ -127,6 +127,7 @@ async fn handle(client: &Client, cache: Arc<Cache>, request: Request) -> Respons
|
|||
}
|
||||
|
||||
// Request was not cached; run a normal check
|
||||
//
|
||||
// This can panic when the Url could not be parsed to a Uri.
|
||||
// See https://github.com/servo/rust-url/issues/554
|
||||
// See https://github.com/seanmonstar/reqwest/issues/668
|
||||
|
|
|
|||
|
|
@ -31,7 +31,10 @@ where
|
|||
}
|
||||
|
||||
/// Helper method to convert a string into a URI
|
||||
/// Note: This panics on error, so it should only be used for testing
|
||||
///
|
||||
/// # Panic
|
||||
///
|
||||
/// This panics on error, so it should only be used for testing
|
||||
pub(crate) fn website(url: &str) -> Uri {
|
||||
Uri::from(Url::parse(url).expect("Expected valid Website URI"))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ impl Input {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::missing_panics_doc)]
|
||||
/// Retrieve the contents from the input
|
||||
///
|
||||
/// # Errors
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ impl Serialize for Status {
|
|||
}
|
||||
|
||||
impl Status {
|
||||
#[allow(clippy::missing_panics_doc)]
|
||||
#[must_use]
|
||||
/// Create a status object from a response and the set of accepted status codes
|
||||
pub fn new(response: &Response, accepted: Option<HashSet<StatusCode>>) -> Self {
|
||||
|
|
|
|||
Loading…
Reference in a new issue