Fix some clippy warnings

korrat
Jun 26, 2023, 2:02 PM
GT7NEECLYQPFOFZQHAQNYIILNRHFTPYUR4TFK2CZ4WQSTXQNE7UQC

Dependencies

  • [2] R7S2CWF7 Add type for account segments
  • [3] YDK6X6PP add a library of important types for beancount

Change contents

  • edit in beancount/account/src/lib.rs at line 779
    [2.2397]
    [2.2397]
    #[allow(clippy::inline_always)]
  • replacement in beancount/account/src/lib.rs at line 794
    [2.2654][2.2654:2703]()
    fn eq(&self, other: &Cow<'_, Seg>) -> bool {
    [2.2654]
    [2.2703]
    fn eq(&self, other: &Cow<'_, Self>) -> bool {
  • replacement in beancount/account/src/lib.rs at line 857
    [2.3813][2.3813:3883]()
    fn partial_cmp(&self, other: &Cow<'_, Seg>) -> Option<Ordering> {
    [2.3813]
    [2.3883]
    fn partial_cmp(&self, other: &Cow<'_, Self>) -> Option<Ordering> {
  • edit in beancount/account/src/lib.rs at line 993
    [2.6700]
    [2.6700]
    #[allow(clippy::inline_always)]