diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 09:10:07 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 09:10:07 +1300 |
commit | ffb979f9cd7d8029251e5bb244428ddaa6724d04 (patch) | |
tree | cd500b1c35966c1aefb2c58c372f8bdb80bcf7ef /src/devices/file_device/operations.rs | |
parent | cbb20c667c8c13fe1d14d1ef146ea0f815e619cc (diff) | |
download | bedrock-pc-ffb979f9cd7d8029251e5bb244428ddaa6724d04.zip |
Make configuration code less confusing
The unwrap_or for the the dimensions value was to get around the fact
that we don't have guaranteed dimensions at this point. It makes it
look like something more important is happening though, so instead we
just make the config struct mutable and overwrite the dimensions field
with the real value when we get access to it.
Diffstat (limited to 'src/devices/file_device/operations.rs')
0 files changed, 0 insertions, 0 deletions