Skip to content

Commit 0a5fdd3

Browse files
authored
Merge branch 'windows-support' into windows-support
2 parents 4de0d83 + 9fde49e commit 0a5fdd3

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub struct Tile {
169169
impl 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

src/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ pub fn get_config_installation_dir() -> String {
187187

188188
pub 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);

0 commit comments

Comments
 (0)