Tweak whitespace around use statements and other lint fixes

This commit is contained in:
Keavon Chambers
2022-01-15 12:55:51 -08:00
parent 314503a6e1
commit 56599db753
23 changed files with 61 additions and 21 deletions
+4 -2
View File
@@ -54,6 +54,7 @@ impl<'a> MessageHandler<ToolMessage, ToolActionHandlerData<'a>> for Pen {
fn actions(&self) -> ActionList {
use PenToolFsmState::*;
match self.fsm_state {
Ready => actions!(PenMessageDiscriminant; Undo, DragStart, DragStop, Confirm, Abort),
Drawing => actions!(PenMessageDiscriminant; DragStop, PointerMove, Confirm, Abort),
@@ -88,10 +89,11 @@ impl Fsm for PenToolFsmState {
input: &InputPreprocessorMessageHandler,
responses: &mut VecDeque<Message>,
) -> Self {
let transform = document.graphene_document.root.transform;
use PenMessage::*;
use PenToolFsmState::*;
let transform = document.graphene_document.root.transform;
if let ToolMessage::Pen(event) = event {
match (self, event) {
(Ready, DragStart) => {