Skip to content

Commit

Permalink
cxx-qt-lib: replace explicit Deref with **self
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbooth committed Jan 12, 2025
1 parent 7b37fe1 commit 6509fdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/cxx-qt-lib/src/core/serde_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
use std::fmt::{self, Formatter};
use std::marker::PhantomData;
use std::num::NonZeroIsize;
use std::ops::Deref;

/// Serializes and deserializes a time-like value using an ISO-8601 string as the intermediary.
macro_rules! datetime_impl {
Expand Down Expand Up @@ -112,7 +111,7 @@ macro_rules! deref_impl {
($t:ty) => {
impl Serialize for $t {
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
<Self as Deref>::Target::serialize(self, serializer)
(**self).serialize(serializer)
}
}

Expand Down

0 comments on commit 6509fdd

Please sign in to comment.