Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes DCA unused struct warning. (FuelLabs#4238)
## Description The issue was that a struct that is used as an accessed field of a public struct results in unused struct warning. The solution was to add to the DCA graph an edge from the access fields to the parent struct. DCA graph before fix: ![3683_before](https://user-images.githubusercontent.com/1188095/223726504-2dc36d96-adf6-464f-b413-af4e7c928647.png) DCA graph after fix: ![3683_after](https://user-images.githubusercontent.com/1188095/223726534-326e29f6-a590-427c-9c1a-f6175891e6c1.png) Closes FuelLabs#3683 ## Checklist - [x] I have linked to any relevant issues. - [x] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [x] I have added tests that prove my fix is effective or that my feature works. - [x] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [x] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [x] I have requested a review from the relevant team or maintainers. Co-authored-by: João Matos <[email protected]>
- Loading branch information