tauri/.changes/assets-iter-cow.md
Lucas Fernandes Nogueira faa259bacf
refactor(core)!: change Assets::iter item to use Cow (#10907)
* refactor(core): change `Assets::iter` item to use `Cow`

make the iterator more flexible to support Assets implementations that do not rely on static assets

* fix test?

* lint

* lint

* clippy again
2024-09-05 13:42:22 -03:00

7 lines
230 B
Markdown

---
"tauri-utils": patch:breaking
"tauri": patch:breaking
---
The `Assets::iter` function now must return a iterator with `Item = (Cow<'_, str>, Cow<'_, [u8]>)` to be more flexible on contexts where the assets are not `'static`.