mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 19:46:10 +08:00
Remove unnecessary snapshot downcast into itself
This commit is contained in:
@@ -78,7 +78,6 @@ mod imp {
|
||||
fn snapshot(&self, widget: &Self::Type, snapshot: >k::Snapshot) {
|
||||
/* FIXME: A lot of hardcoded values in here.
|
||||
Try to use relative units (em) and colours from the theme as much as possible. */
|
||||
let snapshot = snapshot.downcast_ref::<gtk::Snapshot>().unwrap();
|
||||
|
||||
let alloc = widget.get_allocation();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user