deobfuscate: silence dead_code on Deobfuscator::has_sig/has_nsig
Public API methods exposed for downstream consumers (e.g. straw can call deobf.has_sig() to skip cipher streams without observing an Err). The internal short-circuit uses the struct field directly so the methods register as unused at compile time.
This commit is contained in:
parent
8126cc0da5
commit
1211f601df
1 changed files with 5 additions and 0 deletions
|
|
@ -197,11 +197,16 @@ impl Deobfuscator {
|
|||
}
|
||||
|
||||
/// True when the underlying DeobfData had a valid sig fn extracted.
|
||||
/// Exposed for consumers that want to short-circuit cipher streams
|
||||
/// without invoking `deobfuscate_sig` and observing the error.
|
||||
#[allow(dead_code)]
|
||||
pub fn has_sig(&self) -> bool {
|
||||
self.has_sig
|
||||
}
|
||||
|
||||
/// True when the underlying DeobfData had a valid nsig fn extracted.
|
||||
/// Exposed for consumers that want to short-circuit throttled URLs.
|
||||
#[allow(dead_code)]
|
||||
pub fn has_nsig(&self) -> bool {
|
||||
self.has_nsig
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue