Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bumping MSRV to 1.75 #233

Merged
merged 6 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ jobs:

strategy:
fail-fast: false
matrix:
rust:
- 1.75.0
- stable

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rs/toolchain@v1
oestradiol marked this conversation as resolved.
Show resolved Hide resolved
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy

# https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/rust.json
- name: Install Rust Problem Matcher
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
rust-version = "1.70"
rust-version = "1.75"
repository = "https://github.com/sugyan/atrium"
license = "MIT"
keywords = ["atproto", "bluesky"]
Expand Down
2 changes: 1 addition & 1 deletion bsky-sdk/src/rich_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl RichText {
/// Get segments of the rich text.
pub fn segments(&self) -> Vec<RichTextSegment> {
let Some(facets) = self.facets.as_ref() else {
return vec![RichTextSegment::new(&self.text, None)]
return vec![RichTextSegment::new(&self.text, None)];
};
let mut segments = Vec::new();
let (mut text_cursor, mut facet_cursor) = (0, 0);
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.70.0"
channel = "1.75.0"
components = ["clippy", "rustfmt"]
Loading