Skip to content

Commit 2e66aef

Browse files
committed
refactor: rename function for clarity
1 parent 033ff65 commit 2e66aef

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,10 @@ impl LogViewerApp {
669669
match (data.is_filtered(), data.len(), data.total_len_unfiltered()) {
670670
(true, filtered_len, total_len) => format!(
671671
"{} of {}",
672-
with_separators(filtered_len),
673-
with_separators(total_len)
672+
as_string_with_separators(filtered_len),
673+
as_string_with_separators(total_len)
674674
),
675-
(false, _, total_len) => with_separators(total_len),
675+
(false, _, total_len) => as_string_with_separators(total_len),
676676
};
677677
ui.label(format!("# Rows: {row_count_text}"));
678678
}
@@ -844,7 +844,7 @@ fn shortcut_hint_text(ui: &mut egui::Ui, hint_msg: &str, shortcut: &KeyboardShor
844844
format!("{hint_msg}{space}({})", ui.ctx().format_shortcut(shortcut))
845845
}
846846

847-
fn with_separators(value: usize) -> String {
847+
fn as_string_with_separators(value: usize) -> String {
848848
value
849849
.to_string()
850850
.as_bytes()

0 commit comments

Comments
 (0)