Skip to content

Commit ce6512b

Browse files
authored
fix: lint (#105)
1 parent 65d0cdb commit ce6512b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

core/gui/src/editor/canvas.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ use compiler::{
1212
use enumify::enumify;
1313
use geometry::{dir::Dir, transform::TransformationMatrix};
1414
use gpui::{
15-
AppContext, BorderStyle, Bounds, Context, Corners, DefiniteLength, DragMoveEvent, Edges,
16-
Element, Entity, FocusHandle, Focusable, InteractiveElement, IntoElement, Length, MouseButton,
17-
MouseDownEvent, MouseMoveEvent, MouseUpEvent, PaintQuad, ParentElement, Pixels, Point, Render,
18-
Rgba, ScrollWheelEvent, SharedString, Size, Style, Styled, Subscription, Window, div,
19-
pattern_slash, rgb, size, solid_background,
15+
BorderStyle, Bounds, Context, Corners, DefiniteLength, DragMoveEvent, Edges, Element, Entity,
16+
FocusHandle, Focusable, InteractiveElement, IntoElement, Length, MouseButton, MouseDownEvent,
17+
MouseMoveEvent, MouseUpEvent, PaintQuad, ParentElement, Pixels, Point, Render, Rgba,
18+
ScrollWheelEvent, SharedString, Size, Style, Styled, Subscription, Window, div, pattern_slash,
19+
rgb, size, solid_background,
2020
};
2121
use indexmap::IndexSet;
2222
use itertools::Itertools;

core/gui/src/editor/input.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ use std::ops::Range;
33
use gpui::{
44
App, Bounds, ClipboardItem, Context, CursorStyle, ElementId, ElementInputHandler, Entity,
55
EntityInputHandler, FocusHandle, Focusable, GlobalElementId, LayoutId, MouseButton,
6-
MouseDownEvent, MouseMoveEvent, MouseUpEvent, PaintQuad, Pixels, Point, Rgba, ShapedLine,
7-
SharedString, Style, TextRun, UTF16Selection, UnderlineStyle, Window, div, fill, hsla, point,
8-
prelude::*, px, relative, rgb, rgba, size, white,
6+
MouseDownEvent, MouseMoveEvent, MouseUpEvent, PaintQuad, Pixels, Point, ShapedLine,
7+
SharedString, Style, TextRun, UTF16Selection, UnderlineStyle, Window, div, fill, point,
8+
prelude::*, px, relative, size,
99
};
1010
use unicode_segmentation::*;
1111

core/gui/src/editor/toolbars.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl Render for ToolBar {
168168
.id(*id)
169169
.on_click({
170170
let state = self.state.clone();
171-
move |_, window, cx| {
171+
move |_, _, cx| {
172172
on_click(state.clone(), cx);
173173
}
174174
})

0 commit comments

Comments
 (0)