Skip to content

Commit

Permalink
build: upgrade to rust 1.82.0 (#4341)
Browse files Browse the repository at this point in the history
  • Loading branch information
unvalley authored Oct 20, 2024
1 parent e537b51 commit 1b348f4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions crates/biome_formatter/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ macro_rules! format {
#[macro_export]
macro_rules! best_fitting {
($least_expanded:expr, $($tail:expr),+ $(,)?) => {{
#[allow(clippy::macro_metavars_in_unsafe)]
unsafe {
$crate::BestFitting::from_arguments_unchecked($crate::format_args!($least_expanded, $($tail),+))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Rule for NoFlatMapIdentity {
AnyJsExpression::JsArrowFunctionExpression(arg) => {
let parameter: String = match arg.parameters().ok()? {
biome_js_syntax::AnyJsArrowFunctionParameters::AnyJsBinding(p) => {
p.text().trim_matches(&['(', ')']).to_owned()
p.text().trim_matches(['(', ')']).to_owned()
}
biome_js_syntax::AnyJsArrowFunctionParameters::JsParameters(p) => {
if p.items().len() == 1 {
Expand Down Expand Up @@ -110,8 +110,7 @@ impl Rule for NoFlatMapIdentity {
}
AnyJsExpression::JsFunctionExpression(arg) => {
let function_parameter = arg.parameters().ok()?.text();
let function_parameter =
function_parameter.trim_matches(&['(', ')']).to_owned();
let function_parameter = function_parameter.trim_matches(['(', ')']).to_owned();

let mut statement = arg.body().ok()?.statements().into_iter();
if let Some(AnyJsStatement::JsReturnStatement(body)) = statement.next() {
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_suppression/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn parse_suppression_comment(
"/*" => {
comment = comment
.strip_suffix("*/")
.or_else(|| comment.strip_suffix(&['*', '/']))
.or_else(|| comment.strip_suffix(['*', '/']))
.unwrap_or(comment);
true
}
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
# https://rust-lang.github.io/rustup/concepts/profiles.html
profile = "default"
channel = "1.81.0"
channel = "1.82.0"

0 comments on commit 1b348f4

Please sign in to comment.