Replace as_ref with &
This commit is contained in:
parent
44ad8fd136
commit
b2ed9dd546
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue