Skip to content

Commit

Permalink
Change std macro calls to be fully qualified (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi authored Mar 28, 2024
1 parent 4dcccca commit e90e71d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions insta/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ macro_rules! _assert_serialized_snapshot {
macro_rules! _prepare_snapshot_for_redaction {
($value:expr, {$($k:expr => $v:expr),*}, $format:ident, $location:ident) => {
{
let vec = vec![
let vec = std::vec![
$((
$crate::_macro_support::Selector::parse($k).unwrap(),
$crate::_macro_support::Redaction::from($v)
Expand Down Expand Up @@ -313,7 +313,7 @@ macro_rules! _prepare_snapshot_for_redaction {
#[macro_export]
macro_rules! assert_debug_snapshot {
($($arg:tt)*) => {
$crate::_assert_snapshot_base!(transform=|v| format!("{:#?}", v), $($arg)*)
$crate::_assert_snapshot_base!(transform=|v| std::format!("{:#?}", v), $($arg)*)
};
}

Expand Down Expand Up @@ -392,7 +392,7 @@ macro_rules! assert_display_snapshot {
#[macro_export]
macro_rules! assert_snapshot {
($($arg:tt)*) => {
$crate::_assert_snapshot_base!(transform=|v| format!("{}", v), $($arg)*)
$crate::_assert_snapshot_base!(transform=|v| std::format!("{}", v), $($arg)*)
};
}

Expand Down

0 comments on commit e90e71d

Please sign in to comment.