File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub struct Tile {
169169impl Tile {
170170 /// A base window
171171 pub fn new ( keybind_id : u32 , config : & Config ) -> ( Self , Task < Message > ) {
172- let mut settings = default_settings ( ) ;
172+ let settings = default_settings ( ) ;
173173 #[ cfg( target_os = "windows" ) ]
174174 {
175175 // get normal settings and modify position
Original file line number Diff line number Diff line change @@ -187,6 +187,7 @@ pub fn get_config_installation_dir() -> String {
187187
188188pub fn get_config_file_path ( ) -> String {
189189 let home = get_config_installation_dir ( ) ;
190+
190191 if cfg ! ( target_os = "windows" ) {
191192 home + "\\ rustcast\\ config.toml"
192193 } else {
@@ -229,7 +230,7 @@ pub fn create_config_file_if_not_exists(
229230 Ok ( ( ) )
230231}
231232
232- pub fn open_application ( path : & String ) {
233+ pub fn open_application ( path : & str ) {
233234 #[ cfg( target_os = "windows" ) ]
234235 {
235236 println ! ( "Opening application: {}" , path) ;
You can’t perform that action at this time.
0 commit comments