Align with _mut conventions
As per [RFC 52](https://github.com/rust-lang/rfcs/blob/master/active/0052-ownership-variants.md), use `_mut` suffixes to mark mutable variants, and `into_iter` for moving iterators. [breaking-change]
This commit is contained in:
parent
828e075abd
commit
d8dfe1957b
15 changed files with 293 additions and 68 deletions
|
|
@ -449,7 +449,7 @@ enum Flavor<T> {
|
|||
#[doc(hidden)]
|
||||
trait UnsafeFlavor<T> {
|
||||
fn inner_unsafe<'a>(&'a self) -> &'a UnsafeCell<Flavor<T>>;
|
||||
unsafe fn mut_inner<'a>(&'a self) -> &'a mut Flavor<T> {
|
||||
unsafe fn inner_mut<'a>(&'a self) -> &'a mut Flavor<T> {
|
||||
&mut *self.inner_unsafe().get()
|
||||
}
|
||||
unsafe fn inner<'a>(&'a self) -> &'a Flavor<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue