Skip to content

Commit e90e71d

Browse files
authored
Change std macro calls to be fully qualified (#469)
1 parent 4dcccca commit e90e71d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

insta/src/macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ macro_rules! _assert_serialized_snapshot {
277277
macro_rules! _prepare_snapshot_for_redaction {
278278
($value:expr, {$($k:expr => $v:expr),*}, $format:ident, $location:ident) => {
279279
{
280-
let vec = vec![
280+
let vec = std::vec![
281281
$((
282282
$crate::_macro_support::Selector::parse($k).unwrap(),
283283
$crate::_macro_support::Redaction::from($v)
@@ -313,7 +313,7 @@ macro_rules! _prepare_snapshot_for_redaction {
313313
#[macro_export]
314314
macro_rules! assert_debug_snapshot {
315315
($($arg:tt)*) => {
316-
$crate::_assert_snapshot_base!(transform=|v| format!("{:#?}", v), $($arg)*)
316+
$crate::_assert_snapshot_base!(transform=|v| std::format!("{:#?}", v), $($arg)*)
317317
};
318318
}
319319

@@ -392,7 +392,7 @@ macro_rules! assert_display_snapshot {
392392
#[macro_export]
393393
macro_rules! assert_snapshot {
394394
($($arg:tt)*) => {
395-
$crate::_assert_snapshot_base!(transform=|v| format!("{}", v), $($arg)*)
395+
$crate::_assert_snapshot_base!(transform=|v| std::format!("{}", v), $($arg)*)
396396
};
397397
}
398398

0 commit comments

Comments
 (0)