aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-30 03:53:24 -0700
committerFuwn <[email protected]>2024-10-30 03:53:24 -0700
commit544e83adc662814d37154bb70f7597f7934fd63a (patch)
tree964882cd3bf2bcc1e8335f9ab4103e6b5d5876c7
parentchore: bump version (diff)
downloadsenpy-ffi-544e83adc662814d37154bb70f7597f7934fd63a.tar.xz
senpy-ffi-544e83adc662814d37154bb70f7597f7934fd63a.zip
feat: remove nightly requirement
-rw-r--r--rust-toolchain.toml2
-rw-r--r--src/lib.rs3
2 files changed, 1 insertions, 4 deletions
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
deleted file mode 100644
index 22a9829..0000000
--- a/rust-toolchain.toml
+++ /dev/null
@@ -1,2 +0,0 @@
-[toolchain]
-channel = "nightly-2022-02-22"
diff --git a/src/lib.rs b/src/lib.rs
index 4347966..76d6672 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -18,7 +18,6 @@
//! FFI bindings for [`senpy-rs`](https://github.com/senpy-club/senpy-rs)
-#![feature(trivial_bounds)]
#![deny(
warnings,
nonstandard_style,
@@ -196,7 +195,7 @@ pub unsafe extern "C" fn random_free(random: *mut Random) {
return;
}
- Box::from_raw(random);
+ drop(Box::from_raw(random));
}
/// Returns `1` if up, returns `0` if down, and returns `-1` if the request