Inline Target::deref
This commit is contained in:
@@ -1541,11 +1541,13 @@ impl Default for TargetOptions {
|
|||||||
impl Deref for Target {
|
impl Deref for Target {
|
||||||
type Target = TargetOptions;
|
type Target = TargetOptions;
|
||||||
|
|
||||||
|
#[inline]
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
&self.options
|
&self.options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl DerefMut for Target {
|
impl DerefMut for Target {
|
||||||
|
#[inline]
|
||||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||||
&mut self.options
|
&mut self.options
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user