diff --git a/Cargo.toml b/Cargo.toml index 67c9e18c41..86d863f76c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ homepage = "https://www.nushell.sh" license = "MIT" name = "nu" repository = "https://github.com/nushell/nushell" -rust-version = "1.80.1" +rust-version = "1.81.0" version = "0.100.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/nu-cli/src/util.rs b/crates/nu-cli/src/util.rs index 7b9d783534..50db15a68e 100644 --- a/crates/nu-cli/src/util.rs +++ b/crates/nu-cli/src/util.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use nu_cmd_base::hook::eval_hook; use nu_engine::{eval_block, eval_block_with_early_return}; use nu_parser::{lex, parse, unescape_unquote_string, Token, TokenContents}; diff --git a/crates/nu-parser/src/parse_patterns.rs b/crates/nu-parser/src/parse_patterns.rs index dc4a64ce37..6f7cb62bc2 100644 --- a/crates/nu-parser/src/parse_patterns.rs +++ b/crates/nu-parser/src/parse_patterns.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{ lex, lite_parse, parser::{is_variable, parse_value}, @@ -7,7 +9,6 @@ use nu_protocol::{ engine::StateWorkingSet, ParseError, Span, SyntaxShape, Type, VarId, }; - pub fn garbage(span: Span) -> MatchPattern { MatchPattern { pattern: Pattern::Garbage, diff --git a/crates/nu-parser/src/parse_shape_specs.rs b/crates/nu-parser/src/parse_shape_specs.rs index 2a59bb8a59..20d88554dc 100644 --- a/crates/nu-parser/src/parse_shape_specs.rs +++ b/crates/nu-parser/src/parse_shape_specs.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{lex::lex_signature, parser::parse_value, trim_quotes, TokenContents}; use nu_protocol::{engine::StateWorkingSet, ParseError, Span, SyntaxShape, Type}; diff --git a/crates/nu-parser/src/parser.rs b/crates/nu-parser/src/parser.rs index d9f534cc60..b6f5fa161e 100644 --- a/crates/nu-parser/src/parser.rs +++ b/crates/nu-parser/src/parser.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use crate::{ lex::{is_assignment_operator, lex, lex_n_tokens, lex_signature, LexState}, lite_parser::{lite_parse, LiteCommand, LitePipeline, LiteRedirection, LiteRedirectionTarget}, diff --git a/crates/nu-parser/tests/test_lex.rs b/crates/nu-parser/tests/test_lex.rs index 22fe4c4715..a14843f3f0 100644 --- a/crates/nu-parser/tests/test_lex.rs +++ b/crates/nu-parser/tests/test_lex.rs @@ -1,3 +1,5 @@ +#![allow(clippy::byte_char_slices)] + use nu_parser::{lex, lex_n_tokens, lex_signature, LexState, Token, TokenContents}; use nu_protocol::{ParseError, Span}; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 183da649b8..99b3fdde4d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -16,4 +16,4 @@ profile = "default" # use in nushell, we may opt to use the bleeding edge stable version of rust. # I believe rust is on a 6 week release cycle and nushell is on a 4 week release cycle. # So, every two nushell releases, this version number should be bumped by one. -channel = "1.80.1" +channel = "1.81.0"