diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-10-17 18:35:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 18:35:21 -0400 |
commit | b8606c41b9343173b9265c157726f15c3aaa9bbb (patch) | |
tree | d5e75374de8745aa7fe7dbdd457cd2289efc6960 /src/canvas/widgets/mem_basic.rs | |
parent | 914079868f0bc5d1b709953bd8aaf0486ba32f65 (diff) |
refactor: Remove redundant as_ref() calls (#268)
Minor refactor to remove redundant `as_ref()` calls.
Diffstat (limited to 'src/canvas/widgets/mem_basic.rs')
-rw-r--r-- | src/canvas/widgets/mem_basic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/canvas/widgets/mem_basic.rs b/src/canvas/widgets/mem_basic.rs index 38ce9dfc..7c9de191 100644 --- a/src/canvas/widgets/mem_basic.rs +++ b/src/canvas/widgets/mem_basic.rs @@ -27,7 +27,7 @@ impl MemBasicWidget for Painter { let swap_data: &[(f64, f64)] = &app_state.canvas_data.swap_data; let margined_loc = Layout::default() - .constraints([Constraint::Percentage(100)].as_ref()) + .constraints([Constraint::Percentage(100)]) .horizontal_margin(1) .split(draw_loc); |