Back to Bevy

get_full_extension now returns Option.

release-content/migration-guides/get_full_extension.md

0.18.1265 B
Original Source

Previously, AssetPath::get_full_extension returned Option<String>. Now it returns Option<&str>. To maintain behavior, change the following:

rust
asset_path.get_full_extension()

To:

rust
asset_path.get_full_extension().map(ToString::to_string)