File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- use clipboard_rs:: { Clipboard , ClipboardContext , ContentFormat } ;
1
+ use clipboard_rs:: { Clipboard , ClipboardContext } ;
2
2
use iced:: keyboard:: { self } ;
3
3
use iced:: mouse:: { self , ScrollDelta } ;
4
4
use iced:: { Point , Size } ;
@@ -381,7 +381,7 @@ fn iced_key_to_ultralight_key(
381
381
modifiers : keyboard:: Modifiers ,
382
382
text : Option < SmolStr > ,
383
383
) -> Option < event:: KeyEvent > {
384
- let ( mut text, virtual_key, native_key) = {
384
+ let ( text, virtual_key, native_key) = {
385
385
if let Some ( key) = key {
386
386
let text = match key {
387
387
keyboard:: Key :: Named ( key) => {
@@ -881,7 +881,7 @@ fn iced_key_to_ultralight_key(
881
881
shift : modifiers. shift ( ) ,
882
882
} ;
883
883
884
- let ty = if modifiers. ctrl == true {
884
+ let ty = if modifiers. ctrl {
885
885
event:: KeyEventType :: RawKeyDown
886
886
} else if !text. is_empty ( ) && text. is_ascii ( ) && press == KeyPress :: Press {
887
887
event:: KeyEventType :: Char
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use super::Message;
4
4
use crate :: Bookmark ;
5
5
6
6
/// Creates bookmark bar widget
7
- pub fn bookmark_bar ( bookmarks : & Vec < Bookmark > ) -> Element < Message > {
7
+ pub fn bookmark_bar ( bookmarks : & [ Bookmark ] ) -> Element < Message > {
8
8
Row :: from_vec (
9
9
bookmarks
10
10
. iter ( )
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ use strum::IntoEnumIterator;
5
5
6
6
use super :: Message ;
7
7
8
- pub enum ResultType {
9
- Command ( Message ) ,
10
- // Bookmark,
11
- }
8
+ // pub enum ResultType {
9
+ // Command(Message),
10
+ // // Bookmark,
11
+ // }
12
12
13
13
pub struct CommandWindowState {
14
14
pub query : String ,
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ where
135
135
use crate :: engines:: ultralight:: Ultralight ;
136
136
137
137
#[ cfg( feature = "ultralight" ) ]
138
- impl < ' a , CustomViewState : Clone > BrowserWidget < Ultralight , CustomViewState > {
138
+ impl < CustomViewState : Clone > BrowserWidget < Ultralight , CustomViewState > {
139
139
pub fn new_basic ( ) -> BrowserWidget < Ultralight , CustomViewState > {
140
140
BrowserWidget {
141
141
engine : Some ( Ultralight :: new ( ) ) ,
You can’t perform that action at this time.
0 commit comments