Skip to content

Commit 3b63d64

Browse files
authored
fix: Bump MSRV to 1.81 (#91)
1 parent ed96c37 commit 3b63d64

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Setup rust tooling
2222
run: |
23-
rustup override set 1.72
23+
rustup override set 1.81
2424
rustup component add rustfmt clippy
2525
2626
- uses: ./.github/actions/ci

.github/workflows/manual-publish.yml

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

2020
- name: Setup rust tooling
2121
run: |
22-
rustup override set 1.72
22+
rustup override set 1.81
2323
rustup component add rustfmt clippy
2424
2525
- uses: ./.github/actions/ci

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup rust tooling
2525
if: ${{ steps.release.outputs['eventsource-client--release_created'] == 'true' }}
2626
run: |
27-
rustup override set 1.72
27+
rustup override set 1.81
2828
rustup component add rustfmt clippy
2929
3030
- uses: launchdarkly/gh-actions/actions/release-secrets@release-secrets-v1.2.0

eventsource-client/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description = "Client for the Server-Sent Events protocol (aka EventSource)"
55
repository = "https://github.com/launchdarkly/rust-eventsource-client"
66
authors = ["LaunchDarkly"]
77
edition = "2021"
8+
rust-version = "1.81.0"
89
license = "Apache-2.0"
910
keywords = ["launchdarkly", "feature-flags", "feature-toggles", "eventsource", "server-sent-events"]
1011
exclude = ["CHANGELOG.md"]

eventsource-client/src/event_parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ impl EventParser {
347347
}
348348

349349
self.last_char_was_cr = false;
350-
if line.ends_with(&[b'\r']) {
350+
if line.ends_with(b"\r") {
351351
self.complete_lines
352352
.push_back(line[..line.len() - 1].to_vec());
353353
self.last_char_was_cr = true;
354-
} else if line.ends_with(&[b'\n']) {
354+
} else if line.ends_with(b"\n") {
355355
// self isn't a continuation, but rather a line ending with a LF terminator.
356356
self.complete_lines
357357
.push_back(line[..line.len() - 1].to_vec());

0 commit comments

Comments
 (0)