Skip to content

Commit

Permalink
fix serde_json
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Sep 18, 2024
1 parent a145044 commit c820897
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The best way to make Arma 3 Extensions.

```toml
[dependencies]
arma-rs = "1.11.5"
arma-rs = "1.11.7"

[lib]
name = "my_extension"
Expand Down
2 changes: 1 addition & 1 deletion arma-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arma-rs"
description = "Arma 3 Extensions in Rust"
version = "1.11.6"
version = "1.11.7"
edition = "2021"
authors = ["Brett Mayson"]
repository = "https://github.com/brettmayson/arma-rs"
Expand Down
3 changes: 1 addition & 2 deletions arma-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,7 @@ impl ExtensionBuilder {

#[cfg(all(not(windows), not(debug_assertions)))]
let request_context = {
let handle =
unsafe { libc::dlopen(std::ptr::null(), libc::RTLD_NOLOAD) };
let handle = unsafe { libc::dlopen(std::ptr::null(), libc::RTLD_NOLOAD) };
if handle.is_null() {
panic!("Failed to open handle to current process");
}
Expand Down
1 change: 1 addition & 0 deletions arma-rs/src/value/features/serde_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ impl Value {
}
Value::String(s) => serde_json::Value::String(s.to_owned()),
Value::Array(v) => serde_json::Value::Array(v.iter().map(|v| v.to_json()).collect()),
Value::Unknown(s) => serde_json::Value::String(s.to_owned()),
}
}
}

0 comments on commit c820897

Please sign in to comment.