Remove missing_panic_doc (#561)

This commit is contained in:
Matthias 2022-03-22 21:02:56 +01:00 committed by GitHub
parent 8d9619fb67
commit e1d112dbab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -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

View file

@ -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"))
}

View file

@ -142,7 +142,6 @@ impl Input {
}
}
#[allow(clippy::missing_panics_doc)]
/// Retrieve the contents from the input
///
/// # Errors

View file

@ -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 {