Skip to content

Commit

Permalink
fix: file formatting in core/
Browse files Browse the repository at this point in the history
  • Loading branch information
hamirmahal committed Jul 11, 2024
1 parent a138eb8 commit 77c5f43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions core/tauri-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,8 @@ fn copy_framework_from(src_dir: &Path, framework: &str, dest_dir: &Path) -> Resu

// Copies the macOS application bundle frameworks to the target folder
fn copy_frameworks(dest_dir: &Path, frameworks: &[String]) -> Result<()> {
std::fs::create_dir_all(dest_dir).with_context(|| {
format!(
"Failed to create frameworks output directory at {dest_dir:?}"
)
})?;
std::fs::create_dir_all(dest_dir)
.with_context(|| format!("Failed to create frameworks output directory at {dest_dir:?}"))?;
for framework in frameworks.iter() {
if framework.ends_with(".framework") {
let src_path = PathBuf::from(framework);
Expand Down
4 changes: 1 addition & 3 deletions core/tauri/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ fn main() {
if let Ok(kotlin_out_dir) = std::env::var("WRY_ANDROID_KOTLIN_FILES_OUT_DIR") {
fn env_var(var: &str) -> String {
std::env::var(var).unwrap_or_else(|_| {
panic!(
"`{var}` is not set, which is needed to generate the kotlin files for android."
)
panic!("`{var}` is not set, which is needed to generate the kotlin files for android.")
})
}

Expand Down

0 comments on commit 77c5f43

Please sign in to comment.