File tree Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use color::ColorExt;
18
18
19
19
use crate :: macos:: tag;
20
20
21
- static CLS_NAME : & ' static str = "BorderView" ;
21
+ static CLS_NAME : & str = "BorderView" ;
22
22
23
23
pub struct BorderView ;
24
24
@@ -175,9 +175,7 @@ impl BorderView {
175
175
176
176
let ( ) = unsafe { msg_send ! [ border_view, setTag: tag:: from_str( & tag) ] } ;
177
177
178
- let border_view = unsafe { Id :: from_retained_ptr ( border_view as * mut BorderView ) } ;
179
-
180
- border_view
178
+ unsafe { Id :: from_retained_ptr ( border_view as * mut BorderView ) }
181
179
}
182
180
183
181
pub fn set_parent ( & self , parent_view : id ) {
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ pub fn get_menubar() -> Menubar {
39
39
40
40
#[ cfg( target_os = "macos" ) ]
41
41
{
42
- return Menubar :: default ( ) ;
42
+ Menubar :: default ( )
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ pub fn get_monitor_with_cursor() -> Option<Monitor> {
84
84
85
85
#[ cfg( target_os = "macos" ) ]
86
86
{
87
- return macos:: monitor:: get_monitor_with_cursor ( ) ;
87
+ macos:: monitor:: get_monitor_with_cursor ( )
88
88
}
89
89
}
90
90
@@ -101,6 +101,6 @@ pub fn get_monitors() -> Vec<Monitor> {
101
101
102
102
#[ cfg( target_os = "macos" ) ]
103
103
{
104
- return macos:: monitor:: get_monitors ( ) ;
104
+ macos:: monitor:: get_monitors ( )
105
105
}
106
106
}
Original file line number Diff line number Diff line change @@ -393,9 +393,7 @@ impl PopoverView {
393
393
394
394
let ( ) = unsafe { msg_send ! [ popover_view, setRightEdgeMargin: config. right_edge_margin ] } ;
395
395
396
- let popover_view = unsafe { Id :: from_retained_ptr ( popover_view as * mut PopoverView ) } ;
397
-
398
- popover_view
396
+ unsafe { Id :: from_retained_ptr ( popover_view as * mut PopoverView ) }
399
397
}
400
398
401
399
pub fn set_frame ( & self , frame : NSRect ) {
Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ impl<R: Runtime> SharePicker<R> for WebviewWindow<R> {
63
63
64
64
let content_view = window. contentView ( ) . unwrap ( ) ;
65
65
66
- let scale_factor = self . scale_factor ( ) . unwrap ( ) ;
67
-
68
66
let position = PhysicalPosition {
69
67
x : position. x ,
70
68
y : window. frame ( ) . size . height - position. y ,
You can’t perform that action at this time.
0 commit comments