chore: fix lint warnings (#330)
This commit is contained in:
parent
4d6a1fe344
commit
fdbdcc3a4f
8 changed files with 139 additions and 109 deletions
|
|
@ -47,11 +47,7 @@ impl GenericServer {
|
|||
}
|
||||
|
||||
fn has_agency(&self) -> bool {
|
||||
match self.state() {
|
||||
State::Acquiring => true,
|
||||
State::Querying => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(self.state(), State::Acquiring | State::Querying)
|
||||
}
|
||||
|
||||
fn assert_agency_is_ours(&self) -> Result<(), Error> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue