Skip to content

Commit

Permalink
fix cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Jan 9, 2025
1 parent aa9e906 commit ad6ed21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions frontends/rioterm/src/router/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ pub fn create_window_builder(
#[cfg(target_os = "windows")]
{
use rio_window::platform::windows::WindowAttributesExtWindows;
if let Some(use_undecorated_shadow) =
config.window.windows_use_undecorated_shadow
if let Some(use_undecorated_shadow) = config.window.windows_use_undecorated_shadow
{
window_builder = window_builder
.with_undecorated_shadow(config.window.use_undecorated_shadow);
Expand Down
5 changes: 1 addition & 4 deletions rio-backend/src/config/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ pub struct Window {
pub macos_use_shadow: bool,
#[serde(rename = "initial-title", skip_serializing)]
pub initial_title: Option<String>,
#[serde(
rename = "windows-use-undecorated-shadow",
default = "Option::default"
)]
#[serde(rename = "windows-use-undecorated-shadow", default = "Option::default")]
pub windows_use_undecorated_shadow: Option<bool>,
#[serde(
rename = "windows-use-no-redirection-bitmap",
Expand Down

0 comments on commit ad6ed21

Please sign in to comment.