diff options
| author | Mason Reed <mason@vector35.com> | 2025-01-27 19:04:59 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-01-27 19:04:59 -0500 |
| commit | 4551d1f3f4c99d72437d5908fe2aaa0ac850bb1f (patch) | |
| tree | daac6fcd0ce64cc86b7894b9ce7d1792ee7e7eee /rust/src | |
| parent | 01a224425d2a90e660bbfffe8d1cbc6b93da24bd (diff) | |
Fix building rust tests in demo mode
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 267cf840..eb89ff0c 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -491,9 +491,7 @@ pub fn set_license<S: BnStrCompatible + Default>(license: Option<S>) { } #[cfg(feature = "demo")] -pub fn set_license<S: BnStrCompatible + Default>(_license: Option<S>) { - panic!("Cannot set license in demo mode!"); -} +pub fn set_license<S: BnStrCompatible + Default>(_license: Option<S>) {} pub fn product() -> BnString { unsafe { BnString::from_raw(BNGetProduct()) } |
