Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–228 unchanged (228 lines)
229 let data = download(&format!(
230 "https://github.com/tauri-apps/binary-releases/releases/download/apprun-old/AppRun-{arch}"
231 ))?;
232 write_and_make_executable(&apprun, &data)?;
233 }
234
235 let linuxdeploy_arch = if arch == "i686" { "i383" } else { arch };
236 let linuxdeploy = tools_path.join(format!("linuxdeploy-{linuxdeploy_arch}.AppImage"));
237 if !linuxdeploy.exists() {
238 let data = download(&format!("https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-{linuxdeploy_arch}.AppImage"))?;
239 write_and_make_executable(&linuxdeploy, &data)?;
240 }
241
…lines 242–292 unchanged (51 lines)

After

…lines 1–228 unchanged (228 lines)
229 let data = download(&format!(
230 "https://github.com/tauri-apps/binary-releases/releases/download/apprun-old/AppRun-{arch}"
231 ))?;
232 write_and_make_executable(&apprun, &data)?;
233 }
234
235 let linuxdeploy_arch = if arch == "i686" { "i386" } else { arch };
236 let linuxdeploy = tools_path.join(format!("linuxdeploy-{linuxdeploy_arch}.AppImage"));
237 if !linuxdeploy.exists() {
238 let data = download(&format!("https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-{linuxdeploy_arch}.AppImage"))?;
239 write_and_make_executable(&linuxdeploy, &data)?;
240 }
241
…lines 242–292 unchanged (51 lines)

Before

source_file
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
use_declaration
use "use"
scoped_identifier
super "super"
:: "::"
identifier "debian"
; ";"
use_declaration (+44 nodes collapsed)
use_declaration (+26 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Bundles the project.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Returns a vector of PathBuf that shows where the AppImage w"...
function_item (+2151 nodes collapsed)
line_comment
// "//"
function_item
fn "fn"
identifier "prepare_tools"
parameters (+21 nodes collapsed)
-> "->"
generic_type
scoped_type_identifier
crate "crate"
:: "::"
type_identifier "Result"
type_arguments
< "<"
type_identifier "PathBuf"
> ">"
block
{ "{"
let_declaration (+23 nodes collapsed)
expression_statement (+56 nodes collapsed)
let_declaration
let "let"
identifier "linuxdeploy_arch"
= "="
if_expression
if "if"
binary_expression
identifier "arch"
== "=="
string_literal
" "\""
string_content "i686"
" "\""
block
{ "{"
string_literal
" "\""
string_content "i383"
" "\""
} "}"
else_clause
else "else"
block
{ "{"
identifier "arch"
} "}"
; ";"
let_declaration (+23 nodes collapsed)
expression_statement (+56 nodes collapsed)
let_declaration
let "let"
identifier "gtk"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-gtk.sh"
" "\""
) ")"
; ";"
expression_statement (+45 nodes collapsed)
let_declaration
let "let"
identifier "gstreamer"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-gstreamer.sh"
" "\""
) ")"
; ";"
expression_statement (+45 nodes collapsed)
let_declaration
let "let"
identifier "appimage"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-appimage.AppImage"
" "\""
) ")"
; ";"
expression_statement (+118 nodes collapsed)
line_comment
// "//"
let_declaration (+79 nodes collapsed)
call_expression
identifier "Ok"
arguments
( "("
identifier "linuxdeploy"
) ")"
} "}"
function_item (+105 nodes collapsed)

After

source_file
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
line_comment
// "//"
use_declaration
use "use"
scoped_identifier
super "super"
:: "::"
identifier "debian"
; ";"
use_declaration (+44 nodes collapsed)
use_declaration (+26 nodes collapsed)
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Bundles the project.\n"
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Returns a vector of PathBuf that shows where the AppImage w"...
function_item (+2151 nodes collapsed)
line_comment
// "//"
function_item
fn "fn"
identifier "prepare_tools"
parameters (+21 nodes collapsed)
-> "->"
generic_type
scoped_type_identifier
crate "crate"
:: "::"
type_identifier "Result"
type_arguments
< "<"
type_identifier "PathBuf"
> ">"
block
{ "{"
let_declaration (+23 nodes collapsed)
expression_statement (+56 nodes collapsed)
let_declaration
let "let"
identifier "linuxdeploy_arch"
= "="
if_expression
if "if"
binary_expression
identifier "arch"
== "=="
string_literal
" "\""
string_content "i686"
" "\""
block
{ "{"
string_literal
" "\""
string_content "i386"
" "\""
} "}"
else_clause
else "else"
block
{ "{"
identifier "arch"
} "}"
; ";"
let_declaration (+23 nodes collapsed)
expression_statement (+56 nodes collapsed)
let_declaration
let "let"
identifier "gtk"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-gtk.sh"
" "\""
) ")"
; ";"
expression_statement (+45 nodes collapsed)
let_declaration
let "let"
identifier "gstreamer"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-gstreamer.sh"
" "\""
) ")"
; ";"
expression_statement (+45 nodes collapsed)
let_declaration
let "let"
identifier "appimage"
= "="
call_expression
field_expression
identifier "tools_path"
. "."
field_identifier "join"
arguments
( "("
string_literal
" "\""
string_content "linuxdeploy-plugin-appimage.AppImage"
" "\""
) ")"
; ";"
expression_statement (+118 nodes collapsed)
line_comment
// "//"
let_declaration (+79 nodes collapsed)
call_expression
identifier "Ok"
arguments
( "("
identifier "linuxdeploy"
) ")"
} "}"
function_item (+105 nodes collapsed)