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(deps): update dependency rust to v1.83.0 #7537

Merged
merged 1 commit into from
Nov 29, 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
5 changes: 3 additions & 2 deletions apps/oxlint/src/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ impl Runner for LintRunner {
.copied()
.collect::<Vec<&'static str>>();

let config_search_result = Self::find_oxlint_config(&self.cwd, &basic_options.config);
let config_search_result =
Self::find_oxlint_config(&self.cwd, basic_options.config.as_ref());

if let Err(err) = config_search_result {
return err;
Expand Down Expand Up @@ -251,7 +252,7 @@ impl LintRunner {
// when config is provided, but not found, an CliRunResult is returned, else the oxlintrc config file is returned
// when no config is provided, it will search for the default file names in the current working directory
// when no file is found, the default configuration is returned
fn find_oxlint_config(cwd: &Path, config: &Option<PathBuf>) -> Result<Oxlintrc, CliRunResult> {
fn find_oxlint_config(cwd: &Path, config: Option<&PathBuf>) -> Result<Oxlintrc, CliRunResult> {
if let Some(config_path) = config {
return match Oxlintrc::from_file(config_path) {
Ok(config) => Ok(config),
Expand Down
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/generated/ast_kind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ pub enum AstKind<'a> {
JSXText(&'a JSXText<'a>),
}

impl<'a> GetSpan for AstKind<'a> {
impl GetSpan for AstKind<'_> {
#[allow(clippy::match_same_arms)]
fn span(&self) -> Span {
match self {
Expand Down
414 changes: 206 additions & 208 deletions crates/oxc_ast/src/generated/derive_clone_in.rs

Large diffs are not rendered by default.

Loading
Loading