Skip to content

Commit

Permalink
fix a typo in an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Jun 21, 2021
1 parent f367875 commit 5b993d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mockall_derive/src/mockable_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl From<(Attrs, ItemForeignMod)> for MockableModule {
pub_token: <Token![pub]>::default()
});
let attrs = quote!(
#[deprecated(since = "0.9.0", note = "Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automoock] mod ffi { extern \"C\" { fn foo ... } }")]
#[deprecated(since = "0.9.0", note = "Using automock directly on an extern block is deprecated. Instead, wrap the extern block in a module, and automock that, like #[automock] mod ffi { extern \"C\" { fn foo ... } }")]
);
let mut content = vec![
// When mocking extern blocks, we pretend that they're modules, so
Expand Down

0 comments on commit 5b993d5

Please sign in to comment.