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

build: upgrade to rust 1.82.0 #4341

Merged
merged 2 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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"