Skip to content

Commit 94d9d12

Browse files
committed
clippy - fix warnings
1 parent f0e1e60 commit 94d9d12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

adview-manager/src/manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ impl Manager {
345345
.filter(|x| !(self.options.disabled_video && is_video(&x.0.unit)))
346346
.collect::<Vec<_>>();
347347

348-
units_with_price.sort_by(|b, a| match (&a.0.price).cmp(&b.0.price) {
348+
units_with_price.sort_by(|b, a| match a.0.price.cmp(&b.0.price) {
349349
Ordering::Equal => randomized_sort_pos(&a.0.unit, seed.clone())
350350
.cmp(&randomized_sort_pos(&b.0.unit, seed.clone())),
351351
ordering => ordering,

primitives/src/targeting/input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub type Map = serde_json::Map<String, serde_json::Value>;
1414

1515
pub mod field;
1616

17-
#[derive(Debug, Clone, Deserialize, PartialEq)]
17+
#[derive(Debug, Clone, Deserialize, PartialEq, Eq)]
1818
#[serde(untagged)]
1919
pub enum Get<G, V> {
2020
#[serde(skip_deserializing)]

primitives/src/util/logging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ where
5858
self.decorator.with_record(record, values, |decorator| {
5959
let indent = {
6060
let mut history_ref = self.history.borrow_mut();
61-
let mut serializer = CompactFormatSerializer::new(decorator, &mut *history_ref);
61+
let mut serializer = CompactFormatSerializer::new(decorator, &mut history_ref);
6262

6363
values.serialize(record, &mut serializer)?;
6464

0 commit comments

Comments
 (0)