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")
+ 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")
+ } else if status.is_none_or(|x| x == "started")
replacement in src/pages/slow_game.rs at line 256
− let revoke_delegate_data = if status.map_or(true, |x| x == "started") && delegate_itself
− {
+ let revoke_delegate_data = if status.is_none_or(|x| x == "started") && delegate_itself {
replacement in src/pages/slow_game.rs at line 269
− } else if status.map_or(true, |x| x == "started") && player_itself {
+ } 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")
+ let query_delegate_data = if status.is_none_or(|x| x == "started")
replacement in src/pages/slow_game.rs at line 427
− .map_or(true, |x| x.value().to_lowercase() != cached_data.1)
+ .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)
+ .is_none_or(|x| x.value().to_lowercase() != cached_data.1)
replacement in src/pages/slow_game.rs at line 564
− .map_or(true, |x| x != cached_data.1 && x != cached_data.2)
+ .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)
+ .is_none_or(|x| x.value().to_lowercase() != cached_data.1)
replacement in src/main.rs at line 79
− return Err(std::io::Error::new(std::io::ErrorKind::Other, "Small key"));
+ return Err(std::io::Error::other("Small key"));
replacement in src/main.rs at line 86
− return Err(std::io::Error::new(
− std::io::ErrorKind::Other,
− "Incorrect key",
− ));
+ 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",
− ));
+ 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",
− ));
+ 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))
+ 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))
+ 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" # for deadpool-postgres