fix: warning message about using deprecated mime fetcher on yazi >= 25.12.29 (#166)

This commit is contained in:
iokanto
2025-12-30 10:42:41 +03:00
committed by GitHub
parent 517619af12
commit da5b69563c

View File

@@ -1112,7 +1112,7 @@ function M.fallback_builtin(job, unknown, state)
indices[f:hash()] = i
end
local result = require("mime"):fetch(ya.dict_merge(job, { files = unknown }))
local result = require("mime.local"):fetch(ya.dict_merge(job, { files = unknown }))
for i, f in ipairs(unknown) do
if type(result) == "table" then
state[indices[f:hash()]] = result[i]