Clippy
This commit is contained in:
parent
91cdf69924
commit
7622ba09ee
3 changed files with 6 additions and 5 deletions
|
@ -19,10 +19,10 @@ use file_icons::FileIcons;
|
||||||
use fs::Fs;
|
use fs::Fs;
|
||||||
use gpui::{
|
use gpui::{
|
||||||
Action, Animation, AnimationExt, App, BorderStyle, ClickEvent, ClipboardItem, EdgesRefinement,
|
Action, Animation, AnimationExt, App, BorderStyle, ClickEvent, ClipboardItem, EdgesRefinement,
|
||||||
Empty, Entity, FocusHandle, Focusable, Hsla, Length, ListOffset, ListState, MouseButton,
|
Empty, Entity, FocusHandle, Focusable, Hsla, Length, ListOffset, ListState, PlatformDisplay,
|
||||||
PlatformDisplay, SharedString, Stateful, StyleRefinement, Subscription, Task, TextStyle,
|
SharedString, StyleRefinement, Subscription, Task, TextStyle, TextStyleRefinement,
|
||||||
TextStyleRefinement, Transformation, UnderlineStyle, WeakEntity, Window, WindowHandle, div,
|
Transformation, UnderlineStyle, WeakEntity, Window, WindowHandle, div, linear_color_stop,
|
||||||
linear_color_stop, linear_gradient, list, percentage, point, prelude::*, pulsating_between,
|
linear_gradient, list, percentage, point, prelude::*, pulsating_between,
|
||||||
};
|
};
|
||||||
use language::Buffer;
|
use language::Buffer;
|
||||||
use markdown::{HeadingLevelStyles, Markdown, MarkdownElement, MarkdownStyle};
|
use markdown::{HeadingLevelStyles, Markdown, MarkdownElement, MarkdownStyle};
|
||||||
|
|
|
@ -266,6 +266,7 @@ impl MemoryView {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
fn handle_scroll_drag(&mut self, evt: &DragMoveEvent<()>) -> bool {
|
fn handle_scroll_drag(&mut self, evt: &DragMoveEvent<()>) -> bool {
|
||||||
// todo!
|
// todo!
|
||||||
// if !self.scroll_state.is_dragging() {
|
// if !self.scroll_state.is_dragging() {
|
||||||
|
|
|
@ -357,7 +357,7 @@ impl<S: ScrollbarVisibilitySetting> Scrollbars<S> {
|
||||||
id: None,
|
id: None,
|
||||||
tracked_setting: PhantomData,
|
tracked_setting: PhantomData,
|
||||||
handle_was_added: false,
|
handle_was_added: false,
|
||||||
scrollable_handle: Box::new(|| ScrollHandle::new()),
|
scrollable_handle: Box::new(ScrollHandle::new),
|
||||||
tracked_entity_id: None,
|
tracked_entity_id: None,
|
||||||
visibility: show_along.apply_to(Default::default(), ReservedSpace::Thumb),
|
visibility: show_along.apply_to(Default::default(), ReservedSpace::Thumb),
|
||||||
scrollbar_width: ScrollbarWidth::Normal,
|
scrollbar_width: ScrollbarWidth::Normal,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue