Skip to content

Commit f2a9721

Browse files
committed
Use DerefMut
1 parent 6a9d749 commit f2a9721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/option.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
#![stable(feature = "rust1", since = "1.0.0")]
137137

138138
use crate::iter::{FromIterator, FusedIterator, TrustedLen};
139-
use crate::{convert, fmt, hint, mem, ops::{self, Deref}};
139+
use crate::{convert, fmt, hint, mem, ops::{self, Deref, DerefMut}};
140140
use crate::pin::Pin;
141141

142142
// Note that this is not a lang item per se, but it has a hidden dependency on

src/libcore/result.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232

233233
use crate::fmt;
234234
use crate::iter::{FromIterator, FusedIterator, TrustedLen};
235-
use crate::ops::{self, Deref};
235+
use crate::ops::{self, Deref, DerefMut};
236236

237237
/// `Result` is a type that represents either success ([`Ok`]) or failure ([`Err`]).
238238
///

0 commit comments

Comments
 (0)