Skip to content

Commit

Permalink
refactor(container-log-page): Don't borrow mut
Browse files Browse the repository at this point in the history
  • Loading branch information
marhkb committed Jan 29, 2023
1 parent 0df4289 commit 5960a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/container/log_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ mod imp {
.margin_end(6)
.build();
renderer_timestamps.connect_query_data(clone!(@weak obj => move |renderer, _, line| {
let log_timestamps = obj.imp().log_timestamps.borrow_mut();
let log_timestamps = obj.imp().log_timestamps.borrow();
if let Some(timestamp) = log_timestamps.get(line as usize) {
let date_time = format!(
"<span foreground=\"#865e3c\">{timestamp}</span>",
Expand Down

0 comments on commit 5960a83

Please sign in to comment.