Fix clippy warnings

O01eg
Apr 13, 2026, 9:02 AM
GUEGTF7R2LHEZ2LN4SZRRQYZIAPMVMK3BJQECOP54BMCURNKZAKQC

Dependencies

  • [2] W2AVMCLO Log in with Mastodon
  • [3] B7PYGLH3 Show delegate bold if it's logged user itself
  • [4] BCXEUKX6 Add config, static files and web server
  • [5] 6BDGQ4VM Show player names for registered players
  • [6] SBYGGRXY Show pending delegates
  • [7] BKHQHXZQ Manage secure key for cookies
  • [8] WVHXYKCV Add postgresql pools
  • [9] 6TPV5GQ3 Show delegates in player table
  • [10] YDWTHWAI Show form to revoke delegation
  • [11] 4WG6UYDE Fix pending delegations in game status
  • [12] V5ULHL43 Implement delegation support
  • [13] FKXRRUF3 Update dependencies
  • [14] YUFPADNO Add team info to slow game page data
  • [15] 3AKTNR3A Update deadpool-postgres dependency
  • [16] JG2BQCRD Implement query for delegation
  • [17] HGZXG2EQ Update env_logger dependency
  • [18] IEFJTEII Update handlebars dependency
  • [19] WM64YAQL Fix warnings
  • [20] LOFH5LIA Make bold player name
  • [21] 5RQCVFRH Start leave game form
  • [22] D3RL62X5 Implement revoking delegation
  • [23] NY766BOQ Accept form to add player
  • [24] H7NQUYI6 Record join to the game
  • [*] 6NYILMKI Add page for slow game
  • [*] 4MZ4VIR7 Initial commit

Change contents

  • replacement in src/pages/slow_game.rs at line 206
    [3.1245][3.0:79](),[3.1031][3.0:79]()
    let pending_delegates = if status.map_or(true, |x| x == "started")
    [3.1245]
    [3.79]
    let pending_delegates = if status.is_none_or(|x| x == "started")
  • replacement in src/pages/slow_game.rs at line 229
    [3.2137][3.175:237]()
    } else if status.map_or(true, |x| x == "started")
    [3.2137]
    [3.237]
    } else if status.is_none_or(|x| x == "started")
  • replacement in src/pages/slow_game.rs at line 256
    [3.618][3.225:340]()
    let revoke_delegate_data = if status.map_or(true, |x| x == "started") && delegate_itself
    {
    [3.618]
    [3.340]
    let revoke_delegate_data = if status.is_none_or(|x| x == "started") && delegate_itself {
  • replacement in src/pages/slow_game.rs at line 269
    [3.843][3.843:924]()
    } else if status.map_or(true, |x| x == "started") && player_itself {
    [3.843]
    [3.924]
    } else if status.is_none_or(|x| x == "started") && player_itself {
  • replacement in src/pages/slow_game.rs at line 289
    [3.1667][3.840:921]()
    let query_delegate_data = if status.map_or(true, |x| x == "started")
    [3.1667]
    [3.921]
    let query_delegate_data = if status.is_none_or(|x| x == "started")
  • replacement in src/pages/slow_game.rs at line 427
    [3.753][3.753:822]()
    .map_or(true, |x| x.value().to_lowercase() != cached_data.1)
    [3.753]
    [3.822]
    .is_none_or(|x| x.value().to_lowercase() != cached_data.1)
  • replacement in src/pages/slow_game.rs at line 495
    [3.1401][3.1401:1470]()
    .map_or(true, |x| x.value().to_lowercase() != cached_data.1)
    [3.1401]
    [3.1470]
    .is_none_or(|x| x.value().to_lowercase() != cached_data.1)
  • replacement in src/pages/slow_game.rs at line 564
    [3.808][3.808:876]()
    .map_or(true, |x| x != cached_data.1 && x != cached_data.2)
    [3.808]
    [3.876]
    .is_none_or(|x| x != cached_data.1 && x != cached_data.2)
  • replacement in src/pages/slow_game.rs at line 632
    [3.2305][3.2305:2374]()
    .map_or(true, |x| x.value().to_lowercase() != cached_data.1)
    [3.2305]
    [3.2374]
    .is_none_or(|x| x.value().to_lowercase() != cached_data.1)
  • replacement in src/main.rs at line 79
    [3.271][3.271:364]()
    return Err(std::io::Error::new(std::io::ErrorKind::Other, "Small key"));
    [3.271]
    [3.364]
    return Err(std::io::Error::other("Small key"));
  • replacement in src/main.rs at line 86
    [3.562][3.562:714]()
    return Err(std::io::Error::new(
    std::io::ErrorKind::Other,
    "Incorrect key",
    ));
    [3.562]
    [3.714]
    return Err(std::io::Error::other("Incorrect key"));
  • replacement in src/main.rs at line 96
    [3.1049][3.1049:1183]()
    return Err(std::io::Error::new(
    std::io::ErrorKind::Other,
    "Missing key",
    ));
    [3.1049]
    [3.1183]
    return Err(std::io::Error::other("Missing key"));
  • replacement in src/main.rs at line 99
    [3.1260][3.1260:1402]()
    return Err(std::io::Error::new(
    std::io::ErrorKind::Other,
    "Cann't generate key",
    ));
    [3.1260]
    [3.1402]
    return Err(std::io::Error::other("Cann't generate key"));
  • replacement in src/config.rs at line 53
    [3.1846][3.318:413]()
    toml::from_str(&buffer).map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
    [3.1846]
    [3.1883]
    toml::from_str(&buffer).map_err(std::io::Error::other)
  • replacement in src/config.rs at line 65
    [3.2420][3.2420:2546]()
    tokio_postgres::config::Config::from_str(&buffer)
    .map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
    [3.2420]
    [3.2546]
    tokio_postgres::config::Config::from_str(&buffer).map_err(std::io::Error::other)
  • replacement in Cargo.toml at line 21
    [3.19][2.11402:11420]()
    deadpool = "0.12"
    [3.19]
    [3.0]
    deadpool = "0.12" # for deadpool-postgres