From 26f2e19a4f0e609c95c0aba5faefab2eb83a179e Mon Sep 17 00:00:00 2001 From: Hamir Mahal Date: Mon, 15 Jul 2024 04:54:46 -0700 Subject: [PATCH] refactor: remove unnecessary hashes around raw str (#10273) --- core/tauri/build.rs | 4 ++-- core/tauri/src/manager/webview.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tauri/build.rs b/core/tauri/build.rs index 76a1d23da37c..1f9dd5576bc6 100644 --- a/core/tauri/build.rs +++ b/core/tauri/build.rs @@ -321,10 +321,10 @@ fn main() { } fn define_permissions(out_dir: &Path) { - let license_header = r#"# Copyright 2019-2024 Tauri Programme within The Commons Conservancy + let license_header = r"# Copyright 2019-2024 Tauri Programme within The Commons Conservancy # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT -"#; +"; for (plugin, commands) in PLUGINS { let permissions_out_dir = out_dir.join("permissions").join(plugin); diff --git a/core/tauri/src/manager/webview.rs b/core/tauri/src/manager/webview.rs index fba2edfa006c..7bf8c351eb7f 100644 --- a/core/tauri/src/manager/webview.rs +++ b/core/tauri/src/manager/webview.rs @@ -165,7 +165,7 @@ impl WebviewManager { } webview_attributes = webview_attributes .initialization_script( - r#" + r" Object.defineProperty(window, 'isTauri', { value: true, }); @@ -177,7 +177,7 @@ impl WebviewManager { } }) } - "#, + ", ) .initialization_script(&self.invoke_initialization_script) .initialization_script(&format!(