Skip to content

Commit

Permalink
chore: replace error_with_details_on_hover(&
Browse files Browse the repository at this point in the history
  • Loading branch information
grtlr committed Nov 15, 2024
1 parent 257e00a commit a57b156
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/viewer/re_chunk_store_ui/src/arrow_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub(crate) fn arrow_ui(ui: &mut egui::Ui, array: &dyn arrow2::array::Array) {
let mut string = String::new();
match display(&mut string, 0) {
Ok(_) => ui.monospace(&string),
Err(err) => ui.error_with_details_on_hover(&err.to_string()),
Err(err) => ui.error_with_details_on_hover(err.to_string()),
};
return;
} else {
Expand Down
4 changes: 2 additions & 2 deletions crates/viewer/re_chunk_store_ui/src/chunk_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl ChunkUi {
crate::arrow_ui::arrow_ui(ui, &*data);
}
Some(Err(err)) => {
ui.error_with_details_on_hover(&err.to_string());
ui.error_with_details_on_hover(err.to_string());
}
None => {
ui.weak("-");
Expand Down Expand Up @@ -282,7 +282,7 @@ impl ChunkUi {
});
}
Err(err) => {
ui.error_with_details_on_hover(&format!(
ui.error_with_details_on_hover(format!(
"Failed to convert to tqransport: {err}"
));
}
Expand Down
2 changes: 1 addition & 1 deletion crates/viewer/re_data_ui/src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub fn video_result_ui(
Err(err) => {
let error_message = format!("Failed to load video: {err}");
if ui_layout.is_single_line() {
ui.error_with_details_on_hover(&error_message);
ui.error_with_details_on_hover(error_message);
} else {
ui.error_label(error_message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl DisplayColumn {
ui.label(timeline.typ().format(timestamp, ctx.app_options.time_zone));
}
Err(err) => {
ui.error_with_details_on_hover(&err.to_string());
ui.error_with_details_on_hover(err.to_string());
}
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub fn show_zoomed_image_region(
interaction_id,
center_texel,
) {
ui.error_with_details_on_hover(&err.to_string());
ui.error_with_details_on_hover(err.to_string());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ impl ComponentUiRegistry {
// Also, it allows us to slice the array without cloning any elements.
let Some(array) = unit.component_batch_raw(&component_name) else {
re_log::error_once!("Couldn't get {component_name}: missing");
ui.error_with_details_on_hover(&format!("Couldn't get {component_name}: missing"));
ui.error_with_details_on_hover(format!("Couldn't get {component_name}: missing"));
return;
};

Expand Down

0 comments on commit a57b156

Please sign in to comment.