Skip to content

Commit ebce40c

Browse files
Update apps/app/src-tauri/src/lib.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent c5b6a5c commit ebce40c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/app/src-tauri/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,18 @@ fn build_tree_recursive_android(
121121

122122
#[tauri::command]
123123
async fn build_file_tree(
124-
_app: tauri::AppHandle,
124+
app: tauri::AppHandle,
125125
path: String,
126-
_document_top_tree_uri: Option<String>,
126+
document_top_tree_uri: Option<String>,
127127
) -> Result<Vec<FileNode>, String> {
128128
let nodes;
129129

130130
#[cfg(target_os = "android")]
131131
{
132132
// On Android, we need the app handle and args.
133-
// But we renamed arguments to start with _.
134133
// We can use them directly.
135-
let mut unsorted_nodes = build_tree_recursive_android(_app, path, _document_top_tree_uri).await?;
134+
// (Parameter names no longer start with _.)
135+
let mut unsorted_nodes = build_tree_recursive_android(app, path, document_top_tree_uri).await?;
136136
sort_nodes(&mut unsorted_nodes);
137137
nodes = unsorted_nodes;
138138
}

0 commit comments

Comments
 (0)