Skip to content

Make unaligned-reference-avoidance more concise

coolreader18 requested to merge coolreader18/redoxfs:unaligned-refs into master

Doing &{ self.x } has the packed field be copied out and then the reference created to a temporary, as opposed to creating a reference directly to the unaligned field. (let x = self.x; &x vs &self.x basically)

This resolves most of the warnings that pop up when you run make, which makes it less whiplash-y whenever building

Edited by coolreader18

Merge request reports