Remove unnecessary snapshot downcast into itself

This commit is contained in:
Tom A. Wagner
2021-01-07 17:44:23 +01:00
parent 7f054890ed
commit 0e5b9bb1bc

View File

@@ -78,7 +78,6 @@ mod imp {
fn snapshot(&self, widget: &Self::Type, snapshot: &gtk::Snapshot) { fn snapshot(&self, widget: &Self::Type, snapshot: &gtk::Snapshot) {
/* FIXME: A lot of hardcoded values in here. /* FIXME: A lot of hardcoded values in here.
Try to use relative units (em) and colours from the theme as much as possible. */ 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(); let alloc = widget.get_allocation();