avoid 'cloning' types that implement 'Copy'

This commit is contained in:
Daniel Eades 2023-01-10 18:20:12 +00:00
parent 3987c835f2
commit 95d14c393c
6 changed files with 7 additions and 7 deletions

View file

@ -923,7 +923,7 @@ impl Struct {
}
pub fn repr(self, db: &dyn HirDatabase) -> Option<ReprOptions> {
db.struct_data(self.id).repr.clone()
db.struct_data(self.id).repr
}
pub fn kind(self, db: &dyn HirDatabase) -> StructKind {