contextfree / winrt-rust

Use and (eventually) make Windows Runtime APIs with Rust
Apache License 2.0
142 stars 10 forks source link

Get rid of a lot of `mut`s #42

Closed Boddlnagg closed 6 years ago

Boddlnagg commented 6 years ago

We were already using immutable references for all object parameters except self. Now the self parameter is passed as &self instead of &mut self for WinRT objects. Any mutation happening inside WinRT should be invisible to Rust (cf. interior mutability).

Fixes #39