Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftt committed Jan 23, 2023
1 parent c91685b commit d55a656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mockall_derive/src/mock_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ impl MockFunction {
} else {
format!("{}::{}", self.mod_ident, self.sig.ident)
};
let fields = vec!["{}"; argnames.len()].join(", ");
let fields = vec!["{:?}"; argnames.len()].join(", ");
let fstr = format!("{name}({fields})");
quote!(std::format!(#fstr, #((&&::mockall::ArgPrinter(&#argnames)).debug_string()),*))
quote!(std::format!(#fstr, #((&&&::mockall::ArgPrinter(&#argnames)).debug_string()),*))
}

/// Generate code for the expect_ method
Expand Down

0 comments on commit d55a656

Please sign in to comment.