Skip to content

Commit

Permalink
Apply rustfmt formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ERLindeman authored Sep 13, 2024
1 parent 64a0ae6 commit fb61532
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions android/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
//
// Copyright 2024 — by The Lindemans, LLC
//
//
use core::BluetoothManager;
pub struct AndroidBluetoothManager;

Expand Down
4 changes: 2 additions & 2 deletions core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
//
// Copyright 2024 — by The Lindemans, LLC
//
//
pub trait BluetoothManager {
fn connect(&self) -> Result<(), String>;
fn read_data(&self) -> Result<Vec<u8>, String>;
Expand Down
16 changes: 10 additions & 6 deletions gui/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
//
// Copyright 2024 — by The Lindemans, LLC
//
//
use leptos::*;
use wasm_bindgen::prelude::*;
use web_sys::{window, HtmlLinkElement, HtmlMetaElement};
Expand Down Expand Up @@ -44,7 +44,11 @@ struct Widget {

impl Widget {
fn new(name: &'static str, widget_aspect_ratio: f64, is_header: bool) -> Self {
Widget { name, widget_aspect_ratio, is_header }
Widget {
name,
widget_aspect_ratio,
is_header,
}
}
}

Expand Down Expand Up @@ -73,9 +77,9 @@ fn App() -> impl IntoView {

// Initialize widgets with static aspect ratios
let widgets = vec![
Widget::new("welliuᴍ", 0.5 / 3.0, false),
Widget::new("Widget 2", 1.5 / 3.0, false),
Widget::new("Widget 3", 2.0 / 3.0, false),
Widget::new("welliuᴍ", 0.5 / 3.0, false),
Widget::new("Widget 2", 1.5 / 3.0, false),
Widget::new("Widget 3", 2.0 / 3.0, false),
Widget::new("Header 2", 0.5 / 3.0, true), //header
Widget::new("Widget 4", 1.0 / 3.0, false),
Widget::new("Widget 5", 1.0 / 3.0, false),
Expand Down
4 changes: 2 additions & 2 deletions ios/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
//
// Copyright 2024 — by The Lindemans, LLC
//
//
use core::BluetoothManager;
pub struct IosBluetoothManager;

Expand Down
4 changes: 2 additions & 2 deletions main/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
//
// Copyright 2024 — by The Lindemans, LLC
//
//
#[cfg(target_os = "android")]
use android_io::connect_bluetooth;

Expand Down

0 comments on commit fb61532

Please sign in to comment.