Skip to content

Commit 14da835

Browse files
committed
Fixed formatting
1 parent 07375df commit 14da835

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub struct ArgsServer {
1414
pub style: Option<PathBuf>,
1515

1616
/// OSD margin from top edge (0.5 would be screen center). Default is 0.85
17-
#[arg(long, value_name = "<from 0.0 to 1.0>")]
17+
#[arg(long, value_name = "from 0.0 to 1.0")]
1818
pub top_margin: Option<String>,
1919
}
2020

src/server/application.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ use gtk::{
1414
gio::{
1515
self, ApplicationFlags, BusNameWatcherFlags, BusType, DBusSignalFlags, SignalSubscriptionId,
1616
},
17-
glib::{
18-
clone, Char, ControlFlow::Break, MainContext, OptionArg, OptionFlags,
19-
},
17+
glib::{clone, Char, ControlFlow::Break, MainContext, OptionArg, OptionFlags},
2018
prelude::*,
2119
Application,
2220
};
@@ -165,7 +163,7 @@ impl SwayOSDApplication {
165163
}
166164

167165
fn parse_args(args: &ArgsServer) {
168-
// Pulse Device
166+
// Top Margin
169167
if let Some(value) = args.top_margin.to_owned() {
170168
match value.parse::<f32>() {
171169
Ok(top_margin @ 0.0f32..=1.0f32) => {

0 commit comments

Comments
 (0)