Skip to content

Commit 75eaaa6

Browse files
DrChatemilio
authored andcommitted
Remove DynamicItems::has_required
1 parent 2c5a1ea commit 75eaaa6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/codegen/dyngen.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ use proc_macro2::Ident;
55
/// Used to build the output tokens for dynamic bindings.
66
#[derive(Default)]
77
pub struct DynamicItems {
8-
/// Tracks whether or not we contain any required symbols.
9-
/// If so, the signature of the generated `from_library` function
10-
/// will be altered to return a `Result<Self, ::libloading::Error>`
11-
has_required: bool,
12-
138
/// Tracks the tokens that will appears inside the library struct -- e.g.:
149
/// ```ignore
1510
/// struct Lib {
@@ -136,8 +131,6 @@ impl DynamicItems {
136131
assert_eq!(args.len(), args_identifiers.len());
137132
}
138133

139-
self.has_required |= is_required;
140-
141134
self.struct_members.push(
142135
if is_required {
143136
quote! {

0 commit comments

Comments
 (0)