Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Borber committed Aug 20, 2024
1 parent 44309bd commit 004550e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ edition = "2021"


[build-dependencies]
tauri-build = { version = "2.0.0-beta", features = [] }
tauri-build = { version = "2.0.0-rc", features = [] }

[dependencies]
tauri = { version = "2.0.0-beta", features = ["tray-icon"] }
tauri-plugin-single-instance = "2.0.0-beta"
tauri = { version = "2.0.0-rc", features = ["tray-icon"] }
tauri-plugin-single-instance = "2.0.0-rc"

# For base
once_cell = "1"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/manager/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub async fn translate(content: &str) -> Result<TransVO> {
let content = utf8_percent_encode(content, NON_ALPHANUMERIC).to_string();

// 将多行合并一行
let content = content.replace('\n', " ").replace('\r', " ");
let content = content.replace(['\n', '\r'], " ");
let host = if config::mode() {
mirror::one()
} else {
Expand Down

0 comments on commit 004550e

Please sign in to comment.