Skip to content

Commit

Permalink
fmt: formatting and clippy
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Nov 27, 2024
1 parent def93dc commit 7fc1c74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/ndb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ impl Ndb {
vec.into_iter().map(NoteKey::new).collect()
}

pub async fn wait_for_notes(&self, sub_id: Subscription, max_notes: u32) -> Result<Vec<NoteKey>> {
pub async fn wait_for_notes(
&self,
sub_id: Subscription,
max_notes: u32,
) -> Result<Vec<NoteKey>> {
let ndb = self.clone();
let handle = task::spawn_blocking(move || {
let mut vec: Vec<u64> = vec![];
Expand Down
1 change: 0 additions & 1 deletion src/subscription.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct Subscription(u64);

Expand Down

0 comments on commit 7fc1c74

Please sign in to comment.