mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 22:07:53 +02:00
update to rust version 1.87.0 (#16437)
The PR upgrades nushell to rust version 1.87.0. ## Dev overview from clippy - I added `result_large_err` to clippy in the root Cargo.toml to avoid the warnings (and a few places in plugins). At some point a more proper fix, perhaps boxing these, will need to be performed. This PR is to just get us over the hump. - I boxed a couple areas in some commands - I changed `rdr.bytes()` to `BufReader::new(rdr).bytes()` in nu-json ## Release notes summary - What our users need to know Users can use rust version 1.87.0 to compile nushell now ## Tasks after submitting N/A
This commit is contained in:
@ -757,7 +757,7 @@ fn get_proc_env<T: RtlUserProcessParameters>(params: &T, handle: HANDLE) -> Vec<
|
||||
let mut begin = 0;
|
||||
while let Some(offset) = raw_env[begin..].iter().position(|&c| c == 0) {
|
||||
let end = begin + offset;
|
||||
if raw_env[begin..end].iter().any(|&c| c == equals) {
|
||||
if raw_env[begin..end].contains(&equals) {
|
||||
result.push(
|
||||
OsString::from_wide(&raw_env[begin..end])
|
||||
.to_string_lossy()
|
||||
|
Reference in New Issue
Block a user