mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
refactor: general tidy up
fix clippy warnings from latest stable rust
This commit is contained in:
parent
ca4fe422f2
commit
d84139a914
5 changed files with 18 additions and 24 deletions
|
@ -74,7 +74,7 @@ impl Default for BarPosition {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Copy, Clone, PartialEq, Eq)]
|
||||
#[derive(Debug, Default, Deserialize, Copy, Clone, PartialEq, Eq)]
|
||||
pub struct MarginConfig {
|
||||
#[serde(default)]
|
||||
pub bottom: i32,
|
||||
|
@ -86,17 +86,6 @@ pub struct MarginConfig {
|
|||
pub top: i32,
|
||||
}
|
||||
|
||||
impl Default for MarginConfig {
|
||||
fn default() -> Self {
|
||||
MarginConfig {
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct Config {
|
||||
#[serde(default)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue