23 |
#[cfg(test)]
|
24 |
#[allow(clippy::unwrap_in_result, clippy::unwrap_used, clippy::expect_used)]
|
25 |
mod test;
|
87 |
/// enough data to extract [`length`](Self::length) yet.
|
88 |
#[allow(clippy::unwrap_in_result)]
|
89 |
fn length(&mut self) -> Option<usize> {
|
98 |
// TODO: update Clippy
|
99 |
#[allow(clippy::panic_in_result_fn, clippy::unwrap_in_result)]
|
100 |
pub(super) fn send_any<A: Serialize>(&self, data: &A) -> Result<()> {
|
156 |
/// [`Runtime`](tokio::runtime::Runtime).
|
157 |
#[allow(clippy::unwrap_in_result)]
|
158 |
pub fn build(self) -> Result<Endpoint, (Error, Self)> {
|
54 |
#[allow(clippy::as_conversions, clippy::unwrap_in_result)]
|
55 |
fn load_diff(
|
158 |
#[allow(clippy::unwrap_in_result)]
|
159 |
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
493 |
#[allow(clippy::unwrap_in_result)]
|
494 |
fn from_str(s: &str) -> Result<Self, Self::Err> {
|
93 |
#[allow(clippy::unwrap_in_result)] // Supplier::produce() cannot fail.
|
94 |
#[throws(Self::Failure)]
|
234 |
#[allow(clippy::unwrap_used)]
|
235 |
#[allow(clippy::unwrap_in_result)]
|
236 |
// The function will not actually panic, there is only one unwrap which is impossible to fail.
|
134 |
// We can restrict it with the type system later.
|
135 |
#[allow(clippy::unwrap_in_result)]
|
136 |
#[allow(clippy::unwrap_used)]
|
242 |
#[allow(clippy::unwrap_in_result)]
|
243 |
#[allow(clippy::indexing_slicing)]
|
40 |
// This is validated before
|
41 |
#[allow(clippy::unwrap_in_result)]
|
42 |
#[allow(clippy::unwrap_used)]
|
351 |
// Unwraps used here will not panic and they're explained.
|
352 |
#[allow(clippy::unwrap_in_result)]
|
353 |
// I sincerely think that the first match in this function is the most readable way to write it.
|
65 |
/// Returns an error if the header is invalid
|
66 |
#[allow(clippy::unwrap_in_result, clippy::missing_panics_doc)]
|
67 |
pub fn from_header_str(header: &'a str) -> Result<Self, ParseAmzCopySourceError> {
|
129 |
/// Peeks the next event
|
130 |
#[allow(clippy::unwrap_used, clippy::unwrap_in_result)]
|
131 |
fn peek_event(&mut self) -> DeResult<DeEvent<'xml>> {
|
47 |
#[allow(clippy::missing_panics_doc)]
|
48 |
#[allow(clippy::unwrap_in_result)]
|
49 |
#[allow(clippy::unwrap_used)]
|
731 |
#[allow(clippy::unwrap_in_result)] // We know the values are valid.
|
732 |
fn try_from(mut parsed: Parsed) -> Result<Self, Self::Error> {
|
111 |
/// Panics should only happen on bugs.
|
112 |
#[allow(clippy::unwrap_in_result)]
|
113 |
pub fn write<'writer>(
|
215 |
#[must_use]
|
216 |
#[allow(clippy::unwrap_in_result, clippy::unwrap_used)]
|
217 |
pub fn limit_duration(&self, id: u64) -> Option<Duration> {
|
40 |
clippy::unwrap_used,
|
41 |
clippy::unwrap_in_result,
|
42 |
clippy::mod_module_files
|
118 |
clippy::missing_panics_doc,
|
119 |
clippy::unwrap_in_result,
|
120 |
clippy::unwrap_used
|
173 |
clippy::missing_panics_doc,
|
174 |
clippy::unwrap_in_result,
|
175 |
clippy::unwrap_used
|
245 |
clippy::missing_panics_doc,
|
246 |
clippy::unwrap_in_result,
|
247 |
clippy::unwrap_used
|
10 |
clippy::wildcard_imports,
|
11 |
clippy::unwrap_in_result,
|
12 |
clippy::transmute_ptr_to_ptr,
|