Skip to content

Commit 7de44b0

Browse files
Minor reformatting
1 parent bdf7691 commit 7de44b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ struct Portfolio {
1616
struct Asset {
1717
ticker: String,
1818
buy_price_cents: u32,
19-
// technically we don't care about the current price if it is sold, but it is still a valid property to have, so we include it here, although it isn't displayed
19+
// technically we don't care about the current price if
20+
// it is sold, but it is still a valid property to have,
21+
// so we include it here, although it isn't displayed
2022
current_price_cents: u32,
2123
// if sell price is None, it isn't sold
2224
sell_price_cents: Option<u32>,
@@ -25,7 +27,7 @@ struct Asset {
2527
fn is_asset_sold(asset: &Asset) -> bool {
2628
// if there is no sell price, then it isn't sold (i.e., it is currently held)
2729
match asset.sell_price_cents {
28-
Some(_x) => true,
30+
Some(_) => true,
2931
None => false,
3032
}
3133
}

0 commit comments

Comments
 (0)