mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-26 21:41:48 +02:00
fix: mobile clippy warnings
This commit is contained in:
@@ -43,10 +43,7 @@ impl<R: Runtime> Fs<R> {
|
||||
FilePath::Url(u) => self
|
||||
.resolve_content_uri(u.to_string(), opts.android_mode())
|
||||
.map_err(|e| {
|
||||
std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
format!("failed to open file: {e}"),
|
||||
)
|
||||
std::io::Error::other(format!("failed to open file: {e}"))
|
||||
}),
|
||||
FilePath::Path(p) => {
|
||||
// tauri::utils::platform::resources_dir() returns a PathBuf with the Android asset URI prefix
|
||||
@@ -56,10 +53,7 @@ impl<R: Runtime> Fs<R> {
|
||||
{
|
||||
self.resolve_content_uri(p.to_string_lossy(), opts.android_mode())
|
||||
.map_err(|e| {
|
||||
std::io::Error::new(
|
||||
std::io::ErrorKind::Other,
|
||||
format!("failed to open file: {e}"),
|
||||
)
|
||||
std::io::Error::other(format!("failed to open file: {e}"))
|
||||
})
|
||||
} else {
|
||||
std::fs::OpenOptions::from(opts).open(p)
|
||||
|
||||
Reference in New Issue
Block a user