chore: fix lint warnings (#330)

This commit is contained in:
Santiago Carmuega 2023-11-13 17:00:00 -03:00 committed by GitHub
parent 4d6a1fe344
commit fdbdcc3a4f
8 changed files with 139 additions and 109 deletions

View file

@ -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> {