diff options
author | Jonas Schievink <[email protected]> | 2020-12-17 14:45:26 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2020-12-17 14:45:26 +0000 |
commit | 9231821c031ddada08d37547664b276d5e631f62 (patch) | |
tree | 7077e360ba55f13a1b210d43fcef31dd73ceae70 /crates/hir_def/src | |
parent | 3f6077ffe75a31dd53e77719d3369605b6f8b7a5 (diff) |
Make `Attrs::from_attrs_owner` private
Diffstat (limited to 'crates/hir_def/src')
-rw-r--r-- | crates/hir_def/src/attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index c64b78445..45313f335 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs | |||
@@ -104,7 +104,7 @@ impl Attrs { | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | pub fn from_attrs_owner(db: &dyn DefDatabase, owner: InFile<&dyn AttrsOwner>) -> Attrs { | 107 | fn from_attrs_owner(db: &dyn DefDatabase, owner: InFile<&dyn AttrsOwner>) -> Attrs { |
108 | let hygiene = Hygiene::new(db.upcast(), owner.file_id); | 108 | let hygiene = Hygiene::new(db.upcast(), owner.file_id); |
109 | Attrs::new(owner.value, &hygiene) | 109 | Attrs::new(owner.value, &hygiene) |
110 | } | 110 | } |