Skip to content

Commit cf945fa

Browse files
committed
cleanup, typos, clippy
1 parent 840f0f7 commit cf945fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/home/rooms_list_header.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl Widget for RoomsListHeader {
131131
}
132132
}
133133

134-
/// Actions that can be handled by or emitted from the `RoomsListHeader`.
134+
/// Actions that can be handled by the `RoomsListHeader`.
135135
#[derive(Debug)]
136136
pub enum RoomsListHeaderAction {
137137
/// An action received by the RoomsListHeader that will show or hide

src/sliding_sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ async fn start_matrix_client_login_and_sync(rt: Handle) {
18661866
},
18671867
None => {
18681868
error!("BUG: login_receiver hung up unexpectedly");
1869-
let err = format!("Please restart Robrix.\n\nUnable to listen for login requests.");
1869+
let err = String::from("Please restart Robrix.\n\nUnable to listen for login requests.");
18701870
Cx::post_action(LoginAction::LoginFailure(err.clone()));
18711871
enqueue_rooms_list_update(RoomsListUpdate::Status {
18721872
status: err,
@@ -2244,7 +2244,7 @@ async fn space_service_loop(space_service: SpaceService) -> Result<()> {
22442244
}
22452245
VectorDiff::Set { index, value: changed_space } => {
22462246
if LOG_SPACE_SERVICE_DIFFS { log!("space_service: diff Set at {index}"); }
2247-
// TOOD: update this space
2247+
// TODO: update this space
22482248
// let changed_space = SpaceListServiceSpaceInfo::from_space(changed_space.into_inner()).await;
22492249
// if let Some(old_space) = all_joined_spaces.get(index) {
22502250
// update_space(old_space, &changed_space, &space_service_service).await?;

0 commit comments

Comments
 (0)