Skip to content

Commit 6f5cb8c

Browse files
authored
bump MSRV from 1.45.0 to 1.46.0
1 parent 3873330 commit 6f5cb8c

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/lib.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
//!
136136
//! ## Minimal Supported Rust Version
137137
//!
138-
//! This crate's minimum supported `rustc` version is `1.45.0`. MSRV is updated
138+
//! This crate's minimum supported `rustc` version is `1.46.0`. MSRV is updated
139139
//! conservatively, supporting roughly 10 minor versions of `rustc`. MSRV bump
140140
//! is not considered semver breaking, but will require at least minor version
141141
//! bump.
@@ -610,11 +610,7 @@ fn lit_kind_for_patch(patch: &str) -> StrLitKind {
610610
let has_dquote = patch.chars().any(|c| c == '"');
611611
if !has_dquote {
612612
let has_bslash_or_newline = patch.chars().any(|c| matches!(c, '\\' | '\n'));
613-
return if has_bslash_or_newline {
614-
StrLitKind::Raw(1)
615-
} else {
616-
StrLitKind::Normal
617-
};
613+
return if has_bslash_or_newline { StrLitKind::Raw(1) } else { StrLitKind::Normal };
618614
}
619615

620616
// Find the maximum number of hashes that follow a double quote in the string.

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22

33
use xaction::{cargo_toml, cmd, git, push_rustup_toolchain, section, Result};
44

5-
const MSRV: &str = "1.45.0";
5+
const MSRV: &str = "1.46.0";
66

77
fn main() {
88
if let Err(err) = try_main() {

0 commit comments

Comments
 (0)