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 {
type Target = TargetOptions;
#[inline]
fn deref(&self) -> &Self::Target {
&self.options
}
}
impl DerefMut for Target {
#[inline]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.options
}