expect() with formatting -> unwrap_or_else()
authorTomas Wenström <tomas.wenstrom@gmail.com>
Sat, 2 Jan 2021 18:00:18 +0000 (19:00 +0100)
committerTomas Wenström <tomas.wenstrom@gmail.com>
Sat, 2 Jan 2021 18:02:10 +0000 (19:02 +0100)
commit55eb2b7d14ed296940a375f1561209ec78ac5b46
tree81448be25216fb631b994bbf1e0a091c64ff2ed5
parent93679b275e75fd6a1401a6735e6453746ddceebb
expect() with formatting -> unwrap_or_else()

Because with expect() the formatting will always be called, even when there is a value.
src/sprites.rs