Skip to content

Commit 4d18384

Browse files
committed
Formatting.
Signed-off-by: Gerd Zellweger <[email protected]>
1 parent ef549e2 commit 4d18384

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

client/src/app.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ impl eframe::App for SpreadsheetApp {
138138
egui::menu::bar(ui, |ui| {
139139
egui::widgets::global_theme_preference_buttons(ui);
140140
if ui.button("📖 Read The Blog Post").clicked() {
141-
ctx.output_mut(|o| o.open_url = Some(OpenUrl::new_tab("https://docs.feldera.com/use_cases/real_time_apps/part1")));
141+
ctx.output_mut(|o| {
142+
o.open_url = Some(OpenUrl::new_tab(
143+
"https://docs.feldera.com/use_cases/real_time_apps/part1",
144+
))
145+
});
142146
}
143147
if ui.button(format!("{GITHUB} Fork me on Github")).clicked() {
144148
ctx.output_mut(|o| {

client/src/cell_cache.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ pub(crate) struct CellCache {
221221
debouncer: Rc<RefCell<Debouncer>>,
222222
current_range: Option<Range<u64>>,
223223
prefetch_before_after_id: u64,
224-
max_cells: usize
224+
max_cells: usize,
225225
}
226226

227227
impl CellCache {
@@ -263,7 +263,10 @@ impl CellCache {
263263
}
264264

265265
let start = id.saturating_sub(self.prefetch_before_after_id);
266-
let end = std::cmp::min(id.saturating_add(self.prefetch_before_after_id), self.max_cells as u64);
266+
let end = std::cmp::min(
267+
id.saturating_add(self.prefetch_before_after_id),
268+
self.max_cells as u64,
269+
);
267270
let current_range = start..end;
268271
self.current_range = Some(current_range.clone());
269272
trace!("fetching range: {:?}", current_range);

0 commit comments

Comments
 (0)