mirror of
https://github.com/aramperes/nut-rs.git
synced 2025-09-10 05:44:03 -04:00
Clippy. Re-add blocking SSL config
This commit is contained in:
parent
ff03f27b49
commit
07034d2cec
3 changed files with 53 additions and 21 deletions
|
@ -113,7 +113,7 @@ pub trait Sentence: Eq + Sized + Into<crate::Result<Self>> {
|
|||
fn encode(&self) -> Vec<&str>;
|
||||
|
||||
/// Returns an error if the sentence does not match what was expected.
|
||||
fn as_matching<F: FnOnce(&Self) -> bool>(self, matcher: F) -> crate::Result<Self> {
|
||||
fn matching<F: FnOnce(&Self) -> bool>(self, matcher: F) -> crate::Result<Self> {
|
||||
if matcher(&self) {
|
||||
Ok(self)
|
||||
} else {
|
||||
|
@ -122,7 +122,7 @@ pub trait Sentence: Eq + Sized + Into<crate::Result<Self>> {
|
|||
}
|
||||
|
||||
/// Returns an error if the sentence is not equal to what was expected.
|
||||
fn as_exactly(self, expected: Self) -> crate::Result<Self> {
|
||||
fn exactly(self, expected: Self) -> crate::Result<Self> {
|
||||
if expected == self {
|
||||
Ok(self)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue