Added 2 tests to list.rs, improve semantic and using Default trait instant of function new

This commit is contained in:
Quentin Legot
2023-03-21 22:40:49 +01:00
parent d3b2d0bac6
commit b9c329219a
3 changed files with 54 additions and 20 deletions

View File

@ -28,8 +28,8 @@ impl ThreadManager {
Self {
g_current_thread: Option::None,
g_thread_to_be_destroyed: Option::None,
g_alive: List::new(),
ready_list: List::new(),
g_alive: List::default(),
ready_list: List::default(),
}
}