Skip to content

Commit 56dcc13

Browse files
authored
Merge pull request #3 from lonesometraveler/clippy_1
Remove unneeded `return` statement
2 parents c8a5b80 + 8d907e8 commit 56dcc13

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/data.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ pub struct Packet {
2424

2525
impl Default for Packet {
2626
fn default() -> Packet {
27-
return Packet {
27+
Packet {
2828
time: 0,
2929
direction: SerialDirection::SEND,
3030
payload: "".to_string(),
31-
};
31+
}
3232
}
3333
}
3434

@@ -41,10 +41,10 @@ pub struct DataContainer {
4141

4242
impl Default for DataContainer {
4343
fn default() -> DataContainer {
44-
return DataContainer {
44+
DataContainer {
4545
time: vec![],
4646
dataset: vec![vec![]],
4747
raw_traffic: vec![],
48-
};
48+
}
4949
}
5050
}

src/gui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ pub struct GuiSettingsContainer {
5353

5454
impl GuiSettingsContainer {
5555
pub fn default() -> GuiSettingsContainer {
56-
return GuiSettingsContainer {
56+
GuiSettingsContainer {
5757
device: "".to_string(),
5858
baud: 115_200,
5959
debug: true,
6060
x: 1600.0,
6161
y: 900.0,
62-
};
62+
}
6363
}
6464
}
6565

0 commit comments

Comments
 (0)