Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Drop unused no_track_caller configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 7, 2024
1 parent fc9305b commit 8c54281
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/assert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use std::fmt::Debug;
/// ],
/// );
/// ```
#[cfg_attr(not(no_track_caller), track_caller)]
#[track_caller]
pub fn assert_tokens<'de, T>(value: &T, tokens: &'de [Token])
where
T: Serialize + Deserialize<'de> + PartialEq + Debug,
Expand Down Expand Up @@ -63,7 +63,7 @@ where
/// ],
/// );
/// ```
#[cfg_attr(not(no_track_caller), track_caller)]
#[track_caller]
pub fn assert_ser_tokens<T>(value: &T, tokens: &[Token])
where
T: ?Sized + Serialize,
Expand Down Expand Up @@ -121,7 +121,7 @@ where
/// assert_ser_tokens_error(&example, expected, error);
/// }
/// ```
#[cfg_attr(not(no_track_caller), track_caller)]
#[track_caller]
pub fn assert_ser_tokens_error<T>(value: &T, tokens: &[Token], error: &str)
where
T: ?Sized + Serialize,
Expand Down Expand Up @@ -162,7 +162,7 @@ where
/// ],
/// );
/// ```
#[cfg_attr(not(no_track_caller), track_caller)]
#[track_caller]
pub fn assert_de_tokens<'de, T>(value: &T, tokens: &'de [Token])
where
T: Deserialize<'de> + PartialEq + Debug,
Expand Down Expand Up @@ -215,7 +215,7 @@ where
/// "unknown field `x`, expected `a` or `b`",
/// );
/// ```
#[cfg_attr(not(no_track_caller), track_caller)]
#[track_caller]
pub fn assert_de_tokens_error<'de, T>(tokens: &'de [Token], error: &str)
where
T: Deserialize<'de>,
Expand Down

0 comments on commit 8c54281

Please sign in to comment.