mirror of
https://github.com/SkyfallWasTaken/arcade-monitor.git
synced 2024-11-22 17:03:39 +00:00
Appease Clippy
This commit is contained in:
parent
17c19361ab
commit
33dfb3cc8f
1 changed files with 3 additions and 3 deletions
|
@ -67,10 +67,10 @@ pub fn format_item_diff(
|
||||||
"*Stock:* {} → {}{}",
|
"*Stock:* {} → {}{}",
|
||||||
old.stock
|
old.stock
|
||||||
.map(|stock| stock.to_string())
|
.map(|stock| stock.to_string())
|
||||||
.unwrap_or("Unlimited".into()),
|
.unwrap_or_else(|| "Unlimited".into()),
|
||||||
new.stock
|
new.stock
|
||||||
.map(|stock| stock.to_string())
|
.map(|stock| stock.to_string())
|
||||||
.unwrap_or("Unlimited".into()),
|
.unwrap_or_else(|| "Unlimited".into()),
|
||||||
if let (Some(old_stock), Some(new_stock)) = (old.stock, new.stock) {
|
if let (Some(old_stock), Some(new_stock)) = (old.stock, new.stock) {
|
||||||
if old_stock > new_stock {
|
if old_stock > new_stock {
|
||||||
" 🔽"
|
" 🔽"
|
||||||
|
@ -101,7 +101,7 @@ pub fn format_new_item(item: &ShopItem) -> String {
|
||||||
price = item.price,
|
price = item.price,
|
||||||
stock = item.stock
|
stock = item.stock
|
||||||
.map(|stock| stock.to_string())
|
.map(|stock| stock.to_string())
|
||||||
.unwrap_or("Unlimited".into()),
|
.unwrap_or_else(|| "Unlimited".into()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue