all: use expect attribute where possible
This commit is contained in:
parent
c3b50dc653
commit
e377470f3f
134 changed files with 241 additions and 296 deletions
|
|
@ -324,7 +324,10 @@ async fn start_compositor3(state: Rc<State>, test_future: Option<TestFuture>) {
|
|||
state.ring.stop();
|
||||
}
|
||||
|
||||
fn load_config(state: &Rc<State>, #[allow(unused_variables)] for_test: bool) -> ConfigProxy {
|
||||
fn load_config(
|
||||
state: &Rc<State>,
|
||||
#[allow(clippy::allow_attributes, unused_variables)] for_test: bool,
|
||||
) -> ConfigProxy {
|
||||
#[cfg(feature = "it")]
|
||||
if for_test {
|
||||
return ConfigProxy::for_test(state);
|
||||
|
|
@ -365,7 +368,7 @@ fn start_global_event_handlers(
|
|||
|
||||
async fn create_backend(
|
||||
state: &Rc<State>,
|
||||
#[allow(unused_variables)] test_future: Option<TestFuture>,
|
||||
#[allow(clippy::allow_attributes, unused_variables)] test_future: Option<TestFuture>,
|
||||
) -> Option<Rc<dyn Backend>> {
|
||||
#[cfg(feature = "it")]
|
||||
if let Some(tf) = test_future {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue