From 474b4c6ac156248757b32f44e410bcb121e05a74 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 20 Jun 2021 10:07:47 -0600 Subject: [PATCH] fix a typo in an error message --- mockall_derive/src/mockable_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mockall_derive/src/mockable_item.rs b/mockall_derive/src/mockable_item.rs index 124d7461..df6085eb 100644 --- a/mockall_derive/src/mockable_item.rs +++ b/mockall_derive/src/mockable_item.rs @@ -70,7 +70,7 @@ impl From<(Attrs, ItemForeignMod)> for MockableModule { pub_token: ::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