From c3bf670f19478f3f61b8f52ed303a9a9e8a9662a Mon Sep 17 00:00:00 2001
From: Dmitry <b4tm4n@mail.ru>
Date: Sat, 27 Aug 2022 23:57:43 +0300
Subject: [PATCH] use BytesPattern for {binnpat, binnpats} without crate prefix

---
 lib/examples/patchsomedll.rs | 2 +-
 macro/src/lib.rs             | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/examples/patchsomedll.rs b/lib/examples/patchsomedll.rs
index 272acc2..1f7a86d 100644
--- a/lib/examples/patchsomedll.rs
+++ b/lib/examples/patchsomedll.rs
@@ -9,7 +9,7 @@ use std::fs;
 use std::fs::{File, OpenOptions};
 use std::ops::{Deref, DerefMut};
 
-use binnpatch::{ApplyPatch, FindPattern};
+use binnpatch::{ApplyPatch, BytesPattern, FindPattern};
 use binnpatch_macro::{binnpats, binnvecs};
 
 fn main() {
diff --git a/macro/src/lib.rs b/macro/src/lib.rs
index c828b11..4f7a972 100644
--- a/macro/src/lib.rs
+++ b/macro/src/lib.rs
@@ -190,15 +190,11 @@ pub fn binnpat(_item: TokenStream) -> TokenStream {
     let param_group = Group::new(Delimiter::Parenthesis, param_elements);
 
     let sep_colon = Punct::new(':', Spacing::Joint);
-    let i_lib = Ident::new("binnpatch", Span::call_site());
     let i_struct = Ident::new("BytesPattern", Span::call_site());
     let i_from = Ident::new("from", Span::call_site());
 
     let mut result = TokenStream::new();
     result.extend(forest!(
-        i_lib,
-        sep_colon,
-        sep_colon,
         i_struct,
         sep_colon,
         sep_colon,