Skip to content

Commit 94f444d

Browse files
author
Deren Vural
committed
trunk formatting
Signed-off-by: Deren Vural <[email protected]>
1 parent 149d9d5 commit 94f444d

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

src/main.rs

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use gtk::prelude::*;
3030
use gtk::{
3131
/* Libraries */ gio,
3232
/* Application */ Application, ApplicationWindow,
33-
/* Widgets */ Button
33+
/* Widgets */ Button,
3434
};
3535
//use std::env;
3636
//use std::path::Path;
@@ -67,16 +67,16 @@ fn build_ui(app: &Application) {
6767
.build();
6868
// Connect to "clicked" signal of `button`
6969
button1.connect_clicked(move |_| {
70-
println!("Trying to open settings!");//DEBUG
70+
println!("Trying to open settings!"); //DEBUG
7171

7272
// Ideally we should grab if nvidia-settings 'failed' somehow or exited normally
7373
match subprocess::exec_check(&[OsStr::new("nvidia-settings")], None::<&gio::Cancellable>) {
7474
Ok(_x) => {
75-
println!("........yay");//DEBUG
76-
},
75+
println!("........yay"); //DEBUG
76+
}
7777
Err(_y) => {
78-
println!("........fak");//DEBUG
79-
},
78+
println!("........fak"); //DEBUG
79+
}
8080
};
8181
});
8282
// Button Child 2
@@ -89,22 +89,25 @@ fn build_ui(app: &Application) {
8989
.build();
9090
// Connect to "clicked" signal of `button`
9191
button2.connect_clicked(move |_| {
92-
println!("Trying to open settings!");//DEBUG
92+
println!("Trying to open settings!"); //DEBUG
9393

9494
// Ideally we should grab if nvidia-settings 'failed' somehow or exited normally
95-
match subprocess::exec_communicate(&[
96-
OsStr::new("nvidia-settings"),
97-
OsStr::new("-q"),
98-
OsStr::new("GpuUUID"),
99-
OsStr::new("-t"),
100-
], None,
101-
None::<&gio::Cancellable>) {
95+
match subprocess::exec_communicate(
96+
&[
97+
OsStr::new("nvidia-settings"),
98+
OsStr::new("-q"),
99+
OsStr::new("GpuUUID"),
100+
OsStr::new("-t"),
101+
],
102+
None,
103+
None::<&gio::Cancellable>,
104+
) {
102105
Ok(_x) => {
103-
println!("........yay");//DEBUG
104-
},
106+
println!("........yay"); //DEBUG
107+
}
105108
Err(_y) => {
106-
println!("........fak");//DEBUG
107-
},
109+
println!("........fak"); //DEBUG
110+
}
108111
};
109112
});
110113

0 commit comments

Comments
 (0)