Fix compiler warning

This commit is contained in:
Theo Beers authored and Wez Furlong committed 2022-11-05 09:05:35 -07:00
1 parent 6aceb97ded
commit a135f53659
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ async fn read_dir<'lua>(_: &'lua Lua, path: String) -> mlua::Result<Vec<String>>
.await
.map_err(|e| mlua::Error::external(e))?;
let mut entries = vec![];
for entry in dir.next().await {
while let Some(entry) = dir.next().await {
let entry = entry.map_err(|e| mlua::Error::external(e))?;
if let Some(utf8) = entry.path().to_str() {
entries.push(utf8.to_string());