mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Remove unnecessary Option
This commit is contained in:
parent
efb56160c9
commit
d223c28c7d
3 changed files with 10 additions and 5 deletions
|
@ -69,10 +69,10 @@ pub(crate) fn normalize_projection_query(
|
|||
db: &dyn HirDatabase,
|
||||
projection: ProjectionTy,
|
||||
env: Arc<TraitEnvironment>,
|
||||
) -> Option<Ty> {
|
||||
let mut table = InferenceTable::new(db, env.clone());
|
||||
) -> Ty {
|
||||
let mut table = InferenceTable::new(db, env);
|
||||
let ty = table.normalize_projection_ty(projection);
|
||||
Some(table.resolve_completely(ty))
|
||||
table.resolve_completely(ty)
|
||||
}
|
||||
|
||||
/// Solve a trait goal using Chalk.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue