docs: some stupid comments

This commit is contained in:
2026-08-18 22:18:21 +02:00
parent 058cf69c19
commit 2c489ea5e3
2 changed files with 6 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ use crate::{
settings::{general_settings::SettingsLike, server_settings::ServerSettings},
};
// TODO! Maybe move this somewhere more global and share with `board` struct
const MAX_PLAYABLE_CONNECTIONS: usize = 2; // DON'T EVER CHANGE THIS AS GAME OF CHECKERS HAS ONLY TWO PLAYERS, U
// UNDERSTAND????
//

View File

@@ -47,6 +47,11 @@ pub trait SettingsLike: Serialize + DeserializeOwned + Default {
let settings = Self::default();
if let Err(e) = settings.save_to_file() {
// this kinda destroys original file if it has
// content that is invalid, i'm not sure if i
// like this, but i'll keep it for now.
//
// ADDING TODO! SO I DONT FORGET AGOUT THIS
warn!("Could not save server settings to the file, because: {}", e);
}