From 0e5b9bb1bc5763c626d69785ebe0f5469e5d6d26 Mon Sep 17 00:00:00 2001 From: "Tom A. Wagner" Date: Thu, 7 Jan 2021 17:44:23 +0100 Subject: [PATCH] Remove unnecessary snapshot downcast into itself --- src/view/graph_view.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/view/graph_view.rs b/src/view/graph_view.rs index 07f4e32..7261086 100644 --- a/src/view/graph_view.rs +++ b/src/view/graph_view.rs @@ -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::().unwrap(); let alloc = widget.get_allocation();