d-unsed / ruru

Native Ruby extensions written in Rust
MIT License
832 stars 40 forks source link

Add From<String> for RString #66

Closed mjc-gh closed 7 years ago

mjc-gh commented 7 years ago

Minor addition for slightly more ergonomic code. This:

RString::new(fn_that_returns_string().as_str())

Becomes just:

RString::new(fn_that_returns_string())