1
Fork 0

Inline Target::deref

This commit is contained in:
Tomasz Miąsko 2022-02-12 00:00:00 +00:00
parent d04677750b
commit 81f12eb7ef

View file

@ -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
} }