Skip to content

Commit

Permalink
Inline Target::deref
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Feb 15, 2022
1 parent d046777 commit 81f12eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_target/src/spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 81f12eb

Please sign in to comment.