483 |
#[allow(clippy::unnecessary_unwrap)]
|
484 |
fn visit_str<E>(self, s: &str) -> Result<Self::Value, E>
|
221 |
#[allow(clippy::unnecessary_unwrap, clippy::too_many_arguments)]
|
222 |
fn process_unfiltered(
|
444 |
#[allow(clippy::unnecessary_unwrap, clippy::too_many_arguments)]
|
445 |
fn process_filtered(
|
237 |
#[allow(clippy::unnecessary_unwrap)]
|
238 |
pub fn into_token_stream2(self, fields: &Fields, span: Span, alt: bool) -> TokenStream2 {
|
66 |
// Override rule to avoid unnecessary nesting.
|
67 |
#[allow(clippy::unnecessary_unwrap)]
|
68 |
pub fn resolve(
|
305 |
/// Perform modular addition of several `UInt32` objects.
|
306 |
#[allow(clippy::unnecessary_unwrap)]
|
307 |
pub fn addmany<Scalar, CS, M>(mut cs: M, operands: &[Self]) -> Result<Self, SynthesisError>
|
146 |
Some((command, matches)) => {
|
147 |
#[allow(clippy::unnecessary_unwrap)]
|
148 |
// execute pre-dependency-fetch commands
|
774 |
// FIXME: this is a nasty cludge and we should use --ci=github here to take this path
|
775 |
#[allow(clippy::unnecessary_unwrap)]
|
776 |
let repo_url = repo_url.unwrap();
|
48 |
impl Team {
|
49 |
#[allow(clippy::unnecessary_unwrap)]
|
50 |
pub fn from_pem(pem: &Pem) -> anyhow::Result<Option<Self>> {
|
317 |
#[allow(clippy::unnecessary_unwrap)]
|
318 |
fn find_device(&self) -> anyhow::Result<SelectedDevice> {
|
856 |
/// token is specified by the user-defined `token_cost` function.
|
857 |
#[allow(clippy::unnecessary_unwrap)]
|
858 |
fn rule_min_costs<StorageT: 'static + PrimInt + Unsigned>(
|
945 |
/// token is specified by the user-defined `token_cost` function.
|
946 |
#[allow(clippy::unnecessary_unwrap)]
|
947 |
fn rule_max_costs<StorageT: 'static + PrimInt + Unsigned>(
|
96 |
/// A map of priorities for each network interface.
|
97 |
#[allow(clippy::iter_nth_zero, clippy::unnecessary_unwrap)]
|
98 |
pub fn ifpriomap(&self) -> Result<HashMap<String, u64>> {
|
420 |
#[allow(clippy::unnecessary_unwrap)]
|
421 |
pub fn remove(&self, k: &T, guard: &Guard) {
|
78 |
/// If input is_some and in_place is true and output is None, figure out the inplace name
|
79 |
#[allow(clippy::unnecessary_unwrap)]
|
80 |
fn get_output(
|
129 |
#[allow(clippy::unnecessary_unwrap)]
|
130 |
pub(crate) async fn crawl_funding_rate(
|
85 |
#[allow(clippy::unnecessary_unwrap)]
|
86 |
pub(crate) async fn crawl_funding_rate(
|
13 |
#[allow(clippy::unnecessary_unwrap)]
|
14 |
pub(crate) async fn crawl_l2_event(
|
49 |
#[allow(clippy::unnecessary_unwrap)]
|
50 |
pub(crate) async fn crawl_funding_rate(
|
10 |
#[allow(clippy::unnecessary_unwrap)]
|
11 |
pub(crate) async fn crawl_funding_rate(
|
257 |
#[allow(clippy::unnecessary_unwrap)]
|
258 |
pub fn find_less_than(&self, key: &[u8]) -> *const Node {
|
411 |
// return the respective error
|
412 |
#[allow(clippy::unnecessary_unwrap)]
|
413 |
let error = dart_sdk_shasum_download_res.unwrap_err();
|
418 |
// return the respective error
|
419 |
#[allow(clippy::unnecessary_unwrap)]
|
420 |
let error = dart_sdk_download_res.unwrap_err();
|
923 |
#[allow(clippy::unnecessary_unwrap)]
|
924 |
fn ampm_valid(&self, hour: Option<i32>, ampm: Option<bool>, fuzzy: bool) -> ParseResult<bool> {
|
1027 |
#[allow(clippy::unnecessary_unwrap)]
|
1028 |
fn parse_numeric_token(
|
1246 |
#[allow(clippy::unnecessary_unwrap)]
|
1247 |
fn parse_hms(
|
875 |
#[allow(clippy::unnecessary_unwrap)]
|
876 |
fn parse_ihost(s: &str) -> IriResult<(Host, Option<Port>)> {
|
100 |
/// Will throw a `HandError` if there are not exactly 7 cards.
|
101 |
#[allow(clippy::unnecessary_unwrap)]
|
102 |
pub fn eval_7cards(&self) -> Result<Eval, HandError> {
|
322 |
#[allow(clippy::unnecessary_unwrap)]
|
323 |
fn add_forward_configuration(
|
476 |
#[allow(clippy::unnecessary_unwrap)]
|
477 |
if self.options.is_compressed() {
|
339 |
#[allow(clippy::unnecessary_unwrap)] // Until https://github.com/rust-lang/rfcs/pull/2497 gets implemented
|
340 |
fn values_out_of_range<T: FromStr, R: RangeBounds<usize>>(mut item: TypedItem<T>, range: R) -> Result<Vec<T>, ConfigError> {
|
217 |
// about not using if-let, but that'd change the meaning of the conditional.
|
218 |
#[allow(clippy::unnecessary_unwrap)]
|
219 |
pub fn synthesize(tombstones: &Node<N>, from_dels: &Subset, to_dels: &Subset) -> Delta<N> {
|
26 |
impl Properties {
|
27 |
#[allow(clippy::unnecessary_unwrap)]
|
28 |
fn loupe_focus(value: &[lron::Object]) -> Option<Point> {
|
55 |
#[allow(clippy::unnecessary_unwrap)]
|
56 |
fn properties_from(value: &[lron::Object]) -> Self {
|
429 |
#[allow(clippy::unnecessary_unwrap)]
|
430 |
fn request<R, T, F>(&self, cmd: &R, mut func: F) -> RedisResult<T>
|
14 |
/// When unsuccessful, it returns a `ParseError`.
|
15 |
#[allow(clippy::unnecessary_unwrap)] //Clippy gives a suggestion which makes code ugly
|
16 |
pub fn parse_file<'src>(
|
388 |
#[allow(clippy::unnecessary_unwrap)]
|
389 |
fn request<R, T, F>(&self, cmd: &R, mut func: F) -> RedisResult<T>
|
69 |
#[allow(clippy::unnecessary_unwrap)]
|
70 |
pub fn load_sample_as_wavematrix(
|
237 |
#[allow(clippy::unnecessary_unwrap)]
|
238 |
if self.zero_fill_gaps && out.is_some() && out_fail.is_some() {
|
136 |
#[allow(clippy::unnecessary_unwrap)]
|
137 |
pub fn create_key_event(ns_event: id, is_press: bool, is_repeat: bool, in_ime: bool, key_override: Option<KeyCode>) -> KeyEvent {
|
59 |
// This checks that the other header is okay, so cannot unwrap it in if header
|
60 |
#[allow(clippy::unnecessary_unwrap)]
|
61 |
pub fn open(block: T) -> Result<Self, GPTParseError<T>> {
|
296 |
#[allow(clippy::unnecessary_unwrap)]
|
297 |
pub(crate) fn handle_transfer(
|
175 |
#[inline]
|
176 |
#[allow(clippy::unnecessary_unwrap)]
|
177 |
///infallible, but significantly slower, 633ns vs 37ns
|
344 |
#[inline]
|
345 |
#[allow(clippy::unnecessary_unwrap)]
|
346 |
pub fn approx_equal_infallible_f32(a: f32, b: f32, decimal_places: u8) -> bool {
|
556 |
/// Extract and analyze a standalone distribution from a tar stream.
|
557 |
#[allow(clippy::unnecessary_unwrap)]
|
558 |
pub fn from_tar<R: Read>(source: R, extract_dir: &Path) -> Result<Self> {
|
198 |
// Order is: ARGUMENT - ENV_VARIABLE(if not file prefered) - CONFIG-FILE
|
199 |
#[allow(clippy::unnecessary_unwrap)]
|
200 |
fn get_security_key(m: &ArgMatches, cfg: &DeployConfig) -> Result<String, &'static str> {
|
875 |
#[allow(clippy::unnecessary_unwrap)]
|
876 |
fn parse_ihost(s: &str) -> IriResult<(Host, Option<Port>)> {
|
460 |
let existed = if get_result.is_some() {
|
461 |
#[allow(clippy::unnecessary_unwrap)]
|
462 |
let guard = get_result.unwrap();
|
435 |
#[allow(clippy::unnecessary_unwrap)]
|
436 |
fn request<R, T, F>(&self, cmd: &R, mut func: F) -> RedisResult<T>
|
437 |
#[allow(clippy::unnecessary_unwrap)]
|
438 |
fn request<T, F>(&self, cmd: &[u8], mut func: F) -> RedisResult<T>
|
127 |
/// Parse a `Tree` from the given buffer. Usually used through `FileItem::parse_with`.
|
128 |
#[allow(clippy::unnecessary_unwrap)]
|
129 |
pub fn ttree<'s, E>(i: &'s [u8], context: &'s Context) -> IResult<&'s [u8], Tree, E>
|
163 |
#[allow(clippy::unnecessary_unwrap)]
|
164 |
fn formal_param_pat(p: &mut Parser) -> Option<CompletedMarker> {
|
3193 |
#[allow(clippy::unnecessary_unwrap)]
|
3194 |
fn nothing(_path: &Path) -> Result<()> {
|
4 |
impl IndexInfo {
|
5 |
#[allow(clippy::unnecessary_unwrap)]
|
6 |
pub fn write(&self) -> IndexCreateStatement {
|
94 |
#[allow(clippy::unnecessary_unwrap)]
|
95 |
fn main() {
|
129 |
#[allow(clippy::unnecessary_unwrap)]
|
130 |
pub fn create_key_event(
|
437 |
#[allow(clippy::unnecessary_unwrap)]
|
438 |
fn request<T, F>(&self, cmd: &[u8], mut func: F) -> RedisResult<T>
|
378 |
// connect with a configured timeout.
|
379 |
#[allow(clippy::unnecessary_unwrap)]
|
380 |
let stream = if proto.is_some() && Some(Proto::HTTPConnect) != proto {
|
739 |
#[allow(clippy::unnecessary_unwrap)]
|
740 |
/// Get an immutable reference to an entry at the specified numeric path. Returns `None` if the
|
770 |
#[allow(clippy::unnecessary_unwrap)]
|
771 |
/// Get a mutable reference to an entry at the specified numeric path. Returns `None` if the
|
217 |
// Clippy doesn't seem to know that if let with && is still experimental
|
218 |
#[allow(clippy::unnecessary_unwrap)]
|
219 |
fn set_log_base(&self, base: u64, region: Option<VhostUserDirtyLogRegion>) -> Result<()> {
|
56 |
#[allow(clippy::unnecessary_unwrap)]
|
57 |
fn parse_int_2(input_1: &[u8], input_2: &[u8]) -> Option<(u16, u16)> {
|
1565 |
#[allow(clippy::unnecessary_unwrap)]
|
1566 |
#[allow(clippy::collapsible_else_if)]
|
247 |
/// See [`to_bytes`] for additional detail about the encoded form.
|
248 |
#[allow(clippy::unnecessary_unwrap)]
|
249 |
#[cfg(feature = "unstable")]
|
41 |
impl Filter {
|
42 |
#[allow(clippy::unnecessary_unwrap)]
|
43 |
pub fn check_match(&self, value: Vec<u8>) -> anyhow::Result<bool> {
|
7 |
#![allow(clippy::unnecessary_unwrap)]
|
8 |
use log::*;
|
472 |
fn parse_stat(reader: impl io::Read) -> Result<Stat> {
|
473 |
#![allow(clippy::unnecessary_unwrap)]
|
531 |
fn parse_numa_stat(reader: impl io::Read) -> Result<NumaStat> {
|
532 |
#![allow(clippy::unnecessary_unwrap)]
|
1 |
#![allow(clippy::borrowed_box)]
|
2 |
#![allow(clippy::unnecessary_unwrap)]
|
484 |
// This lint recommends some bad choices sometimes.
|
485 |
#![allow(clippy::unnecessary_unwrap)]
|
486 |
// We use `default` method a lot to be support prost and rust-protobuf at the
|
8 |
#![allow(clippy::unnecessary_unwrap)]
|
484 |
// This lint recommends some bad choices sometimes.
|
485 |
#![allow(clippy::unnecessary_unwrap)]
|
486 |
// We use `default` method a lot to be support prost and rust-protobuf at the
|
122 |
#![allow(clippy::too_many_arguments)]
|
123 |
#![allow(clippy::unnecessary_unwrap)]
|
124 |
#![allow(clippy::vec_box)]
|
287 |
clippy::trivially_copy_pass_by_ref,
|
288 |
clippy::unnecessary_unwrap,
|
289 |
clippy::used_underscore_binding,
|
6 |
clippy::float_cmp,
|
7 |
clippy::unnecessary_unwrap,
|
8 |
clippy::manual_map
|