Skip to content

Commit 50694bb

Browse files
authored
chore: support Rust 1.75 (#4246)
* chore: fix wanrings * chore: update rust version
1 parent 206ccb2 commit 50694bb

File tree

31 files changed

+42
-64
lines changed

31 files changed

+42
-64
lines changed

.github/workflows/build_android_apk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: workflow_dispatch
44

55
env:
66
FLUTTER_VERSION: "3.18.0-0.2.pre"
7-
RUST_TOOLCHAIN: "1.70"
7+
RUST_TOOLCHAIN: "1.75"
88

99
jobs:
1010
build:

.github/workflows/mobile_ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
env:
2121
FLUTTER_VERSION: "3.18.0-0.2.pre"
22-
RUST_TOOLCHAIN: "1.70"
22+
RUST_TOOLCHAIN: "1.75"
2323

2424
concurrency:
2525
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
FLUTTER_VERSION: "3.18.0-0.2.pre"
10-
RUST_TOOLCHAIN: "1.70"
10+
RUST_TOOLCHAIN: "1.75"
1111

1212
jobs:
1313
create-release:

.github/workflows/rust_ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
env:
2323
CARGO_TERM_COLOR: always
24-
RUST_TOOLCHAIN: "1.70"
24+
RUST_TOOLCHAIN: "1.75"
2525

2626
jobs:
2727
test-on-ubuntu:
@@ -101,5 +101,5 @@ jobs:
101101
working-directory: frontend/rust-lib/
102102

103103
- name: clippy rust-lib
104-
run: cargo clippy --all
104+
run: cargo clippy --all-targets -- -D warnings
105105
working-directory: frontend/rust-lib

.github/workflows/rust_coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
CARGO_TERM_COLOR: always
1414
FLUTTER_VERSION: "3.18.0-0.2.pre"
15-
RUST_TOOLCHAIN: "1.70"
15+
RUST_TOOLCHAIN: "1.75"
1616

1717
jobs:
1818
tests:

.github/workflows/tauri_ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
NODE_VERSION: "18.16.0"
1111
PNPM_VERSION: "8.5.0"
12-
RUST_TOOLCHAIN: "1.70"
12+
RUST_TOOLCHAIN: "1.75"
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.70"
2+
channel = "1.75"

frontend/rust-lib/event-integration/src/document/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub fn parse_document_data(document: OpenDocumentData) -> ParseDocumentData {
3232
let page_block = blocks.get(&page_id).unwrap();
3333
let children_id = page_block.children_id.clone();
3434
let children = children_map.get(&children_id).unwrap();
35-
let block_id = children.children.get(0).unwrap().to_string();
35+
let block_id = children.children.first().unwrap().to_string();
3636
ParseDocumentData {
3737
doc_id,
3838
page_id,

frontend/rust-lib/event-integration/tests/user/local_test/helper.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pub(crate) fn invalid_email_test_case() -> Vec<String> {
22
// https://gist.github.com/cjaoude/fd9910626629b53c4d25
3-
vec![
3+
[
44
"annie@",
55
"annie@gmail@",
66
"#@%^%#$@#$@#.com",
@@ -11,22 +11,14 @@ pub(crate) fn invalid_email_test_case() -> Vec<String> {
1111
1212
1313
"あいうえお@example.com",
14-
/* The following email is valid according to the validate_email function return
15-
16-
17-
18-
* "email@example",
19-
20-
21-
2214
]
2315
.iter()
2416
.map(|s| s.to_string())
2517
.collect::<Vec<_>>()
2618
}
2719

2820
pub(crate) fn invalid_password_test_case() -> Vec<String> {
29-
vec!["123456", "1234".repeat(100).as_str()]
21+
["123456", "1234".repeat(100).as_str()]
3022
.iter()
3123
.map(|s| s.to_string())
3224
.collect::<Vec<_>>()

frontend/rust-lib/flowy-core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use flowy_user_deps::cloud::UserCloudServiceProvider;
2121
use lib_dispatch::prelude::*;
2222
use lib_dispatch::runtime::AFPluginRuntime;
2323
use module::make_plugins;
24-
pub use module::*;
2524

2625
use crate::config::AppFlowyCoreConfig;
2726
use crate::deps_resolve::collab_backup::RocksdbBackupImpl;

0 commit comments

Comments
 (0)