summaryrefslogtreecommitdiffstats
AgeCommit message (Expand)Author
2021-09-30Use strip_{prefix,suffix} for code that's easier to followLars Wirzenius
2021-09-30Use match for tri-state conditionLars Wirzenius
2021-09-30Allow a pointer-to-pointer transmutationLars Wirzenius
2021-09-30Tell clippy loops that never loop are OKLars Wirzenius
2021-09-30Allow complex types without namesLars Wirzenius
2021-09-30Allow up to ten arguments to functionsLars Wirzenius
2021-09-30Allow short single-character argument and variable namesLars Wirzenius
2021-09-30Allow enum variants up to 512 bytesLars Wirzenius
2021-09-30Allow if conditions that use complex codeLars Wirzenius
2021-09-30Avoid casting a usize to isize in the argument to pointer::offsetLars Wirzenius
2021-09-30Be explicit about giving Ok() the unit valueLars Wirzenius
2021-09-30Avoid calling .map with function returning the unit typeLars Wirzenius
2021-09-30Remove evaluation order dependenceLars Wirzenius
2021-09-30Use as_derefLars Wirzenius
2021-09-30Tell clippy it's OK not to implement traitsLars Wirzenius
2021-09-30Allow new() without default()Lars Wirzenius
2021-09-30Allow ::new to not return SelfLars Wirzenius
2021-09-30Add an is_empty method when len is thereLars Wirzenius
2021-09-30Return a value without first assigning it to a variableLars Wirzenius
2021-09-30Drop unnecessary to_string() methodsLars Wirzenius
2021-09-30Join nested if statements with logical and into one statementLars Wirzenius
2021-09-30Rename variable to be clearerLars Wirzenius
2021-09-30Avoid redundant closuresLars Wirzenius
2021-09-30Use .sort_unstable for speedLars Wirzenius
2021-09-30Replace .filter_map with just .filter when possibleLars Wirzenius
2021-09-30Simplify how to create a vector of cloned valuesLars Wirzenius
2021-09-30Drop unnecessary main function from doc testLars Wirzenius
2021-09-30Use .iter() instead of .into_iter()Lars Wirzenius
2021-09-30Simplify tests for OKLars Wirzenius
2021-09-30Use .find() in an iteratorLars Wirzenius
2021-09-30Use .starts_with instead of .chars().next()Lars Wirzenius
2021-09-30Use Result::map or ::map_err instead of ::and_thenLars Wirzenius
2021-09-30Drop pointless @_ match pattern bindingsLars Wirzenius
2021-09-30Express calculation for seconds-in-week more clearlyLars Wirzenius
2021-09-30Avoid naming field setting it from variable of the same nameLars Wirzenius
2021-09-30Disable clippy::same_item_pushLars Wirzenius
2021-09-30Use .cloned() on iterators, instead of .map(|x| x.clone())Lars Wirzenius
2021-09-30Simplify writing out a literal {}Lars Wirzenius
2021-09-30Drop unnecessary mut when passing a reference to a functionLars Wirzenius
2021-09-30Drop unnecessary &mut on a sliceLars Wirzenius
2021-09-30Drop unnecessary conversions with .into() to the same typeLars Wirzenius
2021-09-30Unpack value with if let instead of is_some/unwrapLars Wirzenius
2021-09-30Simplify &foo == &bar into foo == barLars Wirzenius
2021-09-30Use the now-idiomatic option? syntaxLars Wirzenius
2021-09-30Improve error message for a malformed packetLars Wirzenius
2021-09-30When returning an error, use "return" instead of "?"Lars Wirzenius
2021-09-30Annotate function so that clippy accepts nonminimal_boolLars Wirzenius
2021-09-30Use std::mem::take instead of std::mem::replace, for clarityLars Wirzenius
2021-09-30Drop unnecessary return statementsLars Wirzenius
2021-09-30Use .is_empty() for clarity, instead of .len() == 0Lars Wirzenius