Fix warnings

O01eg
Jul 30, 2024, 7:54 PM
WM64YAQLNOL5OXLEXCCF2RZKF7BBGLJRDXE2U7X5CXJH7BJNS4SQC

Dependencies

  • [2] YUFPADNO Add team info to slow game page data
  • [3] G4JCZ5F7 Store try to register on Mastodon domain
  • [4] FVYTV3D2 Add custom notes to new games feed
  • [5] A2LJT7TT Show duration in turns
  • [6] AEWYJHUD Start to show player list
  • [7] 5RQCVFRH Start leave game form
  • [8] K7FOI6UN Update dependencies and fix game link
  • [9] XKG2L3QB Show label if player could join the game
  • [10] FUCFD4UV Add log in and log out support
  • [11] 6CFNBL5L Add headers for better security
  • [12] GUAEZDLE Add turns info to slow game's page
  • [13] 7QCJHYB6 Show contacts in personal page
  • [14] MUTHALNP Detect user and domain in Mastodon fediverse
  • [15] BCMU6UYK Start login mastodon form
  • [16] ZQIIC7C3 Add field to store timestamp of joining game
  • [17] DGGFYSEG Use non-escaped template for Atom XML
  • [18] 6BDGQ4VM Show player names for registered players
  • [19] MCF5COUL Add personal page
  • [20] LTQCLSBU Split database usage in pages
  • [21] TEB4R7OU Add form to join game
  • [22] 556ZESEO Add RSS for new games
  • [23] CMA5SKJ3 Copy turns Atom generator
  • [24] YXH3KDBR Add initial webfinger
  • [25] 6NYILMKI Add page for slow game
  • [*] EVP2FSBH Split index page

Change contents

  • replacement in src/pages/slow_game.rs at line 66
    [4.25][4.25:59]()
    naive: chrono::NaiveDateTime,
    [4.25]
    [4.59]
    naive: &chrono::NaiveDateTime,
  • replacement in src/pages/slow_game.rs at line 69
    [4.156][4.156:251]()
    let ts = chrono::DateTime::<chrono::Utc>::from_utc(naive, chrono::Utc);
    (ts, now - ts)
    [4.156]
    [4.251]
    use chrono::TimeZone;
    let ts = chrono::Utc::from_utc_datetime(&chrono::Utc, naive);
    (ts, now - &ts)
  • replacement in src/pages/slow_game.rs at line 146
    [2.586][4.954:999](),[4.954][4.954:999]()
    .map(|x| naive_to_diff_utc(x, now));
    [2.586]
    [4.999]
    .map(|x| naive_to_diff_utc(&x, now));
  • replacement in src/pages/slow_game.rs at line 149
    [2.639][4.1077:1122](),[4.1077][4.1077:1122]()
    .map(|x| naive_to_diff_utc(x, now));
    [2.639]
    [4.235]
    .map(|x| naive_to_diff_utc(&x, now));
  • edit in src/pages/slow_game.rs at line 201
    [2.1006]
    [2.1006]
    .as_ref()
  • replacement in src/pages/my.rs at line 113
    [4.1951][4.1951:2033]()
    create_ts: naive_to_text(row.get::<_, chrono::NaiveDateTime>(3)),
    [4.1951]
    [4.2033]
    create_ts: naive_to_text(&row.get::<_, chrono::NaiveDateTime>(3)),
  • edit in src/pages/my.rs at line 116
    [4.2128]
    [4.2128]
    .as_ref()
  • replacement in src/pages/mod.rs at line 97
    [2.1764][2.1764:1887]()
    pub fn naive_to_text(ts: chrono::NaiveDateTime) -> String {
    chrono::DateTime::<chrono::Utc>::from_utc(ts, chrono::Utc)
    [2.1764]
    [2.1887]
    pub fn naive_to_text(ts: &chrono::NaiveDateTime) -> String {
    use chrono::TimeZone;
    chrono::Utc::from_utc_datetime(&chrono::Utc, ts)
  • replacement in src/pages/log_in.rs at line 241
    [4.1726][3.1374:1488]()
    let opt_client_id = row.get::<_, Option<&str>>(0);
    let opt_client_secret = row.get::<_, Option<&str>>(1);
    [4.1726]
    [3.1488]
    let _opt_client_id = row.get::<_, Option<&str>>(0);
    let _opt_client_secret = row.get::<_, Option<&str>>(1);
  • replacement in src/pages/atom/turns.rs at line 71
    [4.2085][4.2085:2166]()
    let entry_ts = chrono::DateTime::from_utc(turn_ts, chrono::Utc);
    [4.2085]
    [4.2166]
    use chrono::TimeZone;
    let entry_ts = chrono::Utc::from_utc_datetime(&chrono::Utc, &turn_ts);
  • replacement in src/pages/atom/games.rs at line 59
    [4.1640][4.1640:1794]()
    let start_ts = chrono::DateTime::<chrono::Utc>::from_utc(
    row.get::<_, chrono::NaiveDateTime>(1),
    chrono::Utc,
    );
    [4.1640]
    [4.0]
    use chrono::TimeZone;
    let start_ts =
    chrono::Utc::from_utc_datetime(&chrono::Utc, &row.get::<_, chrono::NaiveDateTime>(1));
  • replacement in src/pages/atom/games.rs at line 67
    [4.1868][4.1868:1961]()
    chrono::DateTime::from_utc(row.get::<_, chrono::NaiveDateTime>(3), chrono::Utc);
    [4.1868]
    [4.588]
    chrono::Utc::from_utc_datetime(&chrono::Utc, &row.get::<_, chrono::NaiveDateTime>(3));