Skip to content

Commit

Permalink
Replace as_ref with &
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Apr 2, 2018
1 parent 44ad8fd commit b2ed9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/middle/stability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
// version, then we should display no warning message.
let deprecated_in_future_version = if let Some(sym) = depr_entry.attr.since {
let since = sym.as_str();
!deprecation_in_effect(since.as_ref())
!deprecation_in_effect(&since)
} else {
false
};
Expand Down

0 comments on commit b2ed9dd

Please sign in to comment.