Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Oct 16, 2024
1 parent b803693 commit a2a8a9f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ mod multi_subscriber;
mod nav;
mod note;
mod notecache;
mod notes_holder;
mod post;
mod profile;
pub mod relay_pool_manager;
Expand All @@ -40,7 +41,6 @@ pub mod ui;
mod unknowns;
mod user_account;
mod view_state;
mod notes_holder;

#[cfg(test)]
#[macro_use]
Expand Down
5 changes: 4 additions & 1 deletion src/notes_holder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ impl<M: NotesHolder> NotesHolderStorage<M> {
.map(NoteRef::from_query_result)
.collect()
} else {
debug!("got no results from NotesHolder lookup for {}", hex::encode(id));
debug!(
"got no results from NotesHolder lookup for {}",
hex::encode(id)
);
vec![]
};

Expand Down
10 changes: 8 additions & 2 deletions src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ use enostr::{Filter, Pubkey};
use nostrdb::{FilterBuilder, Ndb, ProfileRecord, Transaction};

use crate::{
app::copy_notes_into_timeline, filter::{self, FilterState}, multi_subscriber::MultiSubscriber, note::NoteRef, notecache::NoteCache, notes_holder::NotesHolder, timeline::{PubkeySource, Timeline, TimelineKind}
app::copy_notes_into_timeline,
filter::{self, FilterState},
multi_subscriber::MultiSubscriber,
note::NoteRef,
notecache::NoteCache,
notes_holder::NotesHolder,
timeline::{PubkeySource, Timeline, TimelineKind},
};

pub enum DisplayName<'a> {
Expand Down Expand Up @@ -60,7 +66,7 @@ impl Profile {
let mut timeline =
Timeline::new(TimelineKind::profile(source), FilterState::ready(filters));

copy_notes_into_timeline(&mut timeline, txn, ndb, note_cache, notes);
copy_notes_into_timeline(&mut timeline, txn, ndb, note_cache, notes);

Profile {
timeline,
Expand Down

0 comments on commit a2a8a9f

Please sign in to comment.