We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DynamicItems::has_required
1 parent 2c5a1ea commit 75eaaa6Copy full SHA for 75eaaa6
src/codegen/dyngen.rs
@@ -5,11 +5,6 @@ use proc_macro2::Ident;
5
/// Used to build the output tokens for dynamic bindings.
6
#[derive(Default)]
7
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
-
13
/// Tracks the tokens that will appears inside the library struct -- e.g.:
14
/// ```ignore
15
/// struct Lib {
@@ -136,8 +131,6 @@ impl DynamicItems {
136
131
assert_eq!(args.len(), args_identifiers.len());
137
132
}
138
133
139
- self.has_required |= is_required;
140
141
134
self.struct_members.push(
142
135
if is_required {
143
quote! {
0 commit comments