Skip to content

Commit

Permalink
removing unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sundaram123krishnan committed May 14, 2024
1 parent c38ad51 commit d932749
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/piggui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ mod gpio;
use gpio::PinConfig;
// This binary will only be built with the "iced" feature enabled, by use of "required-features"
// in Cargo.toml so no need for the feature to be used here for conditional compiling
use iced::widget::{button, checkbox, column, container, row, text, Column, Radio, Row, Text};
use iced::{window, Element, Length, Sandbox, Settings, alignment};
use iced::widget::{button, container, row, Column, Text};
use iced::{alignment, window, Element, Length, Sandbox, Settings};

fn main() -> iced::Result {

Check warning on line 9 in src/piggui.rs

View check run for this annotation

Codecov / codecov/patch

src/piggui.rs#L9

Added line #L9 was not covered by tests
let window = window::Settings {
Expand Down Expand Up @@ -80,10 +80,8 @@ fn pin_view(pins: &[Option<PinConfig>; 40]) -> Element<'static, Message> {
.width(Length::Fill)
.height(Length::Fill);

Check warning on line 81 in src/piggui.rs

View check run for this annotation

Codecov / codecov/patch

src/piggui.rs#L76-L81

Added lines #L76 - L81 were not covered by tests

for i in 0..pins.len() / 2 {

for _i in 0..pins.len() / 2 {
let row = row!(

// add radio button
button(Text::new("pin1")).on_press(Message::Activate),
button(Text::new("pin2")).on_press(Message::Activate)
Expand Down

0 comments on commit d932749

Please sign in to comment.