lint: remove some warning
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user