You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lock_waiting_queue.rs
    path of file: ./repos/tikv/src/storage/lock_manager
    
    the code of the file until where you have to start completion: // Copyright 2022 TiKV Project Authors. Licensed under Apache-2.0.

//! This mod contains the [`LockWaitQueues`] for managing waiting and waking up
//! of `AcquirePessimisticLock` requests in lock-contention scenarios, and other
//! related accessories, including:
//!
//! - [`SharedError`]: A wrapper type to [`crate::storage::Error`] to allow the
//!   error being shared in multiple places
//! - Related type aliases
//! - [`LockWaitEntry`]: which is used to represent lock-waiting requests in the
//!   queue
//! - [`Box<LockWaitEntry>`]: The
    
    fn bench_update_lock_wait_empty(b: &mut test::Bencher) {
        let queues = LockWaitQueues::new(MockLockManager::new());
        queues.mock_lock_wait(b"k1", 5, 6, false);

        let mut lock_info = kvrpcpb::LockInfo::default();
        let key = b"t\x00\x00\x00\x00\x00\x00\x00\x01_r\x00\x00\x00\x00\x00\x00\x00\x01";
        lock_info.set_key(key.to_vec());
        lock_info.set_primary_lock(key.to_vec());
        lock_info.set_lock_version(10);
        lock_info.set_lock_for_update_ts(10);
        let lock_info = vec![lock_info];

        b.iter(|| {
            queues.update_lock_wait(lock_info.clone());
        });
    }