mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
remove Cancelable from Ty
This commit is contained in:
parent
05ed6c548a
commit
b871062e32
6 changed files with 57 additions and 71 deletions
|
@ -160,7 +160,7 @@ impl StructField {
|
|||
pub fn name(&self) -> &Name {
|
||||
&self.name
|
||||
}
|
||||
pub fn ty(&self, db: &impl HirDatabase) -> Cancelable<Option<Ty>> {
|
||||
pub fn ty(&self, db: &impl HirDatabase) -> Option<Ty> {
|
||||
db.type_for_field(self.struct_.def_id, self.name.clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue