lint: remove some warning

This commit is contained in:
Quentin Legot
2023-04-12 15:32:46 +02:00
parent 752b70e448
commit 35736821c0
8 changed files with 14 additions and 35 deletions

View File

@ -35,14 +35,14 @@ impl ObjAddr {
/// Adds the **obj** Semaphore to self
pub fn add_semaphore(&mut self, obj: Semaphore) -> i32 {
self.last_id = self.last_id + 1;
self.last_id += 1;
self.semaphores.insert(self.last_id, obj);
self.last_id
}
/// Adds the **obj** Lock to self
pub fn add_lock(&mut self, obj: Lock) -> i32 {
self.last_id = self.last_id + 1;
self.last_id += 1;
self.locks.insert(self.last_id, obj);
self.last_id
}