Skip to content

Commit 4b75e60

Browse files
authored
chore: Bumping MSRV to 1.75 (#233)
* chore: Bumping MSRV to 1.75 * Formatting * Bumping version on Cargo.toml * Configuring matrix workflow * Bringing back actions-rust-lang/setup-rust-toolchain@v1 * Removing "Install Rust Problem Matcher"
1 parent 2c206d6 commit 4b75e60

File tree

5 files changed

+10
-40
lines changed

5 files changed

+10
-40
lines changed

.github/rust.json

-33
This file was deleted.

.github/workflows/rust.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ jobs:
2121

2222
strategy:
2323
fail-fast: false
24+
matrix:
25+
rust:
26+
- 1.75.0
27+
- stable
2428

2529
steps:
2630
- name: Checkout repository
2731
uses: actions/checkout@v4
2832

2933
- name: Install Rust toolchain
3034
uses: actions-rust-lang/setup-rust-toolchain@v1
31-
32-
# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
33-
- name: Install Rust Problem Matcher
34-
run: echo "::add-matcher::.github/rust.json"
35+
with:
36+
toolchain: ${{ matrix.rust }}
37+
components: rustfmt, clippy
3538

3639
- name: Bump opt-level
3740
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ resolver = "2"
1616

1717
[workspace.package]
1818
edition = "2021"
19-
rust-version = "1.70"
19+
rust-version = "1.75"
2020
repository = "https://github.com/sugyan/atrium"
2121
license = "MIT"
2222
keywords = ["atproto", "bluesky"]

bsky-sdk/src/rich_text.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl RichText {
102102
/// Get segments of the rich text.
103103
pub fn segments(&self) -> Vec<RichTextSegment> {
104104
let Some(facets) = self.facets.as_ref() else {
105-
return vec![RichTextSegment::new(&self.text, None)]
105+
return vec![RichTextSegment::new(&self.text, None)];
106106
};
107107
let mut segments = Vec::new();
108108
let (mut text_cursor, mut facet_cursor) = (0, 0);

rust-toolchain.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.70.0"
2+
channel = "1.75.0"
33
components = ["clippy", "rustfmt"]

0 commit comments

Comments
 (0)