Skip to content

Commit

Permalink
Bump verison
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Dec 18, 2024
1 parent 881772a commit c1a4ed5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rlbot-flatbuffers-py"
version = "0.11.2"
version = "0.11.3"
edition = "2021"
description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers"
repository = "https://github.com/VirxEC/rlbot_flatbuffers_py"
Expand Down
2 changes: 1 addition & 1 deletion pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def random_script_config():

print("Running quick benchmark...")

num_trials = 60_000
num_trials = 10_000

total_make_time = 0
total_pack_time = 0
Expand Down
7 changes: 2 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl<T, U> FromGil<T> for U
where
U: From<T>,
{
#[inline]
fn from_gil(_py: Python, obj: T) -> Self {
Self::from(obj)
}
Expand All @@ -58,7 +57,6 @@ impl<T, U> IntoGil<U> for T
where
U: FromGil<T>,
{
#[inline]
fn into_gil(self, py: Python) -> U {
U::from_gil(py, self)
}
Expand Down Expand Up @@ -87,17 +85,16 @@ pub trait PyDefault: Sized + PyClass {
}

impl<T: Default + PyClass + Into<PyClassInitializer<T>>> PyDefault for T {
#[inline(never)]
fn py_default(py: Python) -> Py<Self> {
Py::new(py, Self::default()).unwrap()
}
}

static NONE_STR: &str = "None";

#[must_use]
#[inline(never)]
pub fn none_str() -> String {
String::from(NONE_STR)
String::from("None")
}

#[must_use]
Expand Down

0 comments on commit c1a4ed5

Please sign in to comment.