Skip to content

Commit c1a4ed5

Browse files
committed
Bump verison
1 parent 881772a commit c1a4ed5

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rlbot-flatbuffers-py"
3-
version = "0.11.2"
3+
version = "0.11.3"
44
edition = "2021"
55
description = "A Python module implemented in Rust for serializing and deserializing RLBot's flatbuffers"
66
repository = "https://github.com/VirxEC/rlbot_flatbuffers_py"

pytest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def random_script_config():
159159

160160
print("Running quick benchmark...")
161161

162-
num_trials = 60_000
162+
num_trials = 10_000
163163

164164
total_make_time = 0
165165
total_pack_time = 0

src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ impl<T, U> FromGil<T> for U
4444
where
4545
U: From<T>,
4646
{
47-
#[inline]
4847
fn from_gil(_py: Python, obj: T) -> Self {
4948
Self::from(obj)
5049
}
@@ -58,7 +57,6 @@ impl<T, U> IntoGil<U> for T
5857
where
5958
U: FromGil<T>,
6059
{
61-
#[inline]
6260
fn into_gil(self, py: Python) -> U {
6361
U::from_gil(py, self)
6462
}
@@ -87,17 +85,16 @@ pub trait PyDefault: Sized + PyClass {
8785
}
8886

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

95-
static NONE_STR: &str = "None";
96-
9794
#[must_use]
9895
#[inline(never)]
9996
pub fn none_str() -> String {
100-
String::from(NONE_STR)
97+
String::from("None")
10198
}
10299

103100
#[must_use]

0 commit comments

Comments
 (0)