Skip to content

Commit

Permalink
Address latest stable Rust's clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
complexspaces committed Jan 30, 2023
1 parent d8e604b commit 82e910c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/blocking/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ mod test {
let collections = ss.get_all_collections().unwrap();
assert!(
collections.len() < count_before,
"collections before delete {}",
count_before
"collections before delete {count_before}",
)
}

Expand Down
3 changes: 1 addition & 2 deletions src/collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ mod test {
let collections = ss.get_all_collections().await.unwrap();
assert!(
collections.len() < count_before,
"collections before delete {}",
count_before
"collections before delete {count_before}"
);
}

Expand Down
8 changes: 4 additions & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ pub enum Error {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Error::Crypto(err) => write!(f, "Crypto error: {}", err),
Error::Zbus(err) => write!(f, "zbus error: {}", err),
Error::ZbusFdo(err) => write!(f, "zbus fdo error: {}", err),
Error::Zvariant(err) => write!(f, "zbus serde error: {}", err),
Error::Crypto(err) => write!(f, "Crypto error: {err}"),
Error::Zbus(err) => write!(f, "zbus error: {err}"),
Error::ZbusFdo(err) => write!(f, "zbus fdo error: {err}"),
Error::Zvariant(err) => write!(f, "zbus serde error: {err}"),
Error::Locked => f.write_str("SS Error: object locked"),
Error::NoResult => f.write_str("SS error: result not returned from SS API"),
Error::Prompt => f.write_str("SS error: prompt dismissed"),
Expand Down

0 comments on commit 82e910c

Please sign in to comment.