@@ -14,7 +14,7 @@ use super::cmd::{DirOperationOptions, FileOperationOptions};
1414/// Reads a directory.
1515#[cfg(read_dir)]
1616pub fn read_dir(
17- webview: &mut Webview,
17+ webview: &mut Webview<'_> ,
1818 path: PathBuf,
1919 options: Option<DirOperationOptions>,
2020 callback: String,
@@ -38,7 +38,7 @@ pub fn read_dir(
3838/// Copies a file.
3939#[cfg(copy_file)]
4040pub fn copy_file(
41- webview: &mut Webview,
41+ webview: &mut Webview<'_> ,
4242 source: PathBuf,
4343 destination: PathBuf,
4444 options: Option<FileOperationOptions>,
@@ -65,7 +65,7 @@ pub fn copy_file(
6565/// Creates a directory.
6666#[cfg(create_dir)]
6767pub fn create_dir(
68- webview: &mut Webview,
68+ webview: &mut Webview<'_> ,
6969 path: PathBuf,
7070 options: Option<DirOperationOptions>,
7171 callback: String,
@@ -96,7 +96,7 @@ pub fn create_dir(
9696/// Removes a directory.
9797#[cfg(remove_dir)]
9898pub fn remove_dir(
99- webview: &mut Webview,
99+ webview: &mut Webview<'_> ,
100100 path: PathBuf,
101101 options: Option<DirOperationOptions>,
102102 callback: String,
@@ -127,7 +127,7 @@ pub fn remove_dir(
127127/// Removes a file
128128#[cfg(remove_file)]
129129pub fn remove_file(
130- webview: &mut Webview,
130+ webview: &mut Webview<'_> ,
131131 path: PathBuf,
132132 options: Option<FileOperationOptions>,
133133 callback: String,
@@ -147,7 +147,7 @@ pub fn remove_file(
147147/// Renames a file.
148148#[cfg(rename_file)]
149149pub fn rename_file(
150- webview: &mut Webview,
150+ webview: &mut Webview<'_> ,
151151 old_path: PathBuf,
152152 new_path: PathBuf,
153153 options: Option<FileOperationOptions>,
@@ -174,7 +174,7 @@ pub fn rename_file(
174174/// Writes a text file.
175175#[cfg(write_file)]
176176pub fn write_file(
177- webview: &mut Webview,
177+ webview: &mut Webview<'_> ,
178178 path: PathBuf,
179179 contents: String,
180180 options: Option<FileOperationOptions>,
@@ -196,7 +196,7 @@ pub fn write_file(
196196/// Writes a binary file.
197197#[cfg(write_binary_file)]
198198pub fn write_binary_file(
199- webview: &mut Webview,
199+ webview: &mut Webview<'_> ,
200200 path: PathBuf,
201201 contents: String,
202202 options: Option<FileOperationOptions>,
@@ -222,7 +222,7 @@ pub fn write_binary_file(
222222/// Reads a text file.
223223#[cfg(read_text_file)]
224224pub fn read_text_file(
225- webview: &mut Webview,
225+ webview: &mut Webview<'_> ,
226226 path: PathBuf,
227227 options: Option<FileOperationOptions>,
228228 callback: String,
@@ -239,7 +239,7 @@ pub fn read_text_file(
239239/// Reads a binary file.
240240#[cfg(read_binary_file)]
241241pub fn read_binary_file(
242- webview: &mut Webview,
242+ webview: &mut Webview<'_> ,
243243 path: PathBuf,
244244 options: Option<FileOperationOptions>,
245245 callback: String,
0 commit comments