Inline Target::deref
This commit is contained in:
parent
d04677750b
commit
81f12eb7ef
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue