randomPoison / cs-bindgen

Experiment in using Rust to build a library that can be loaded by Unity across multiple platforms
4 stars 0 forks source link

Fix support of &mut methods #19

Closed randomPoison closed 4 years ago

randomPoison commented 4 years ago

The implementation of methods added in #12 had a bug where methods taking &mut self wouldn't correctly borrow the underlying mutex, resulting in a compiler error. This change fixes that issue and adds regression tests for it.