From 2ee2460ed483943f45a512fbf28dea6063b05cc3 Mon Sep 17 00:00:00 2001
From: Maksim Bondarenkov <119937608+ognevny@users.noreply.github.com>
Date: Tue, 22 Oct 2024 17:12:10 +0300
Subject: [PATCH] feat: Upgrade to Rust 1.82.0 (#9293)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
### Description
fix
https://rust-lang.github.io/rust-clippy/master/index.html#too_long_first_doc_paragraph
and
https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
clippy lints
### Testing Instructions
`cargo t`
---
crates/turborepo-auth/src/lib.rs | 4 +++-
crates/turborepo-dirs/src/lib.rs | 18 ++++++++++--------
crates/turborepo-filewatch/src/cookies.rs | 4 +++-
.../turborepo-filewatch/src/package_watcher.rs | 14 ++++++++------
crates/turborepo-globwalk/src/lib.rs | 4 +++-
.../src/change_mapper/package.rs | 5 ++++-
.../src/package_graph/mod.rs | 4 +++-
crates/turborepo-ui/src/prefixed.rs | 5 +++--
crates/turborepo-ui/src/wui/query.rs | 6 ++++--
rust-toolchain.toml | 2 +-
10 files changed, 42 insertions(+), 24 deletions(-)
diff --git a/crates/turborepo-auth/src/lib.rs b/crates/turborepo-auth/src/lib.rs
index 732b673c61eaa..72b34dd423e1e 100644
--- a/crates/turborepo-auth/src/lib.rs
+++ b/crates/turborepo-auth/src/lib.rs
@@ -27,7 +27,9 @@ pub const VERCEL_TOKEN_FILE: &str = "auth.json";
pub const TURBO_TOKEN_DIR: &str = "turborepo";
pub const TURBO_TOKEN_FILE: &str = "config.json";
-/// Token is the result of a successful login or an existing token. This acts as
+/// Token.
+///
+/// It's the result of a successful login or an existing token. This acts as
/// a wrapper for a bunch of token operations, like validation. We explicitly do
/// not store any information about the underlying token for a few reasons, like
/// having a token invalidated on the web but not locally.
diff --git a/crates/turborepo-dirs/src/lib.rs b/crates/turborepo-dirs/src/lib.rs
index a72dc4b33005c..cff0645f4b18c 100644
--- a/crates/turborepo-dirs/src/lib.rs
+++ b/crates/turborepo-dirs/src/lib.rs
@@ -2,10 +2,11 @@ use dirs_next::config_dir as dirs_config_dir;
use thiserror::Error;
use turbopath::{AbsoluteSystemPathBuf, PathError};
-/// Returns the path to the user's configuration directory. This is a wrapper
-/// around `dirs_next::config_dir` that also checks the `TURBO_CONFIG_DIR_PATH`
-/// environment variable. If the environment variable is set, it will return
-/// that path instead of `dirs_next::config_dir`.
+/// Returns the path to the user's configuration directory.
+///
+/// This is a wrapper around `dirs_next::config_dir` that also checks the
+/// `TURBO_CONFIG_DIR_PATH` environment variable. If the environment variable
+/// is set, it will return that path instead of `dirs_next::config_dir`.
pub fn config_dir() -> Result