mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Bump some deps (#503)
This commit is contained in:
@ -23,7 +23,7 @@ csv = "1.1.3"
|
||||
glob = "0.3.0"
|
||||
Inflector = "0.11"
|
||||
thiserror = "1.0.29"
|
||||
sysinfo = "0.21.2"
|
||||
sysinfo = "0.22.2"
|
||||
chrono = { version = "0.4.19", features = ["serde"] }
|
||||
chrono-humanize = "0.2.1"
|
||||
chrono-tz = "0.6.0"
|
||||
@ -48,8 +48,8 @@ ical = "0.7.0"
|
||||
calamine = "0.18.0"
|
||||
roxmltree = "0.14.0"
|
||||
rand = "0.8"
|
||||
rust-embed = "5.9.0"
|
||||
trash = { version = "1.3.0", optional = true }
|
||||
rust-embed = "6.3.0"
|
||||
trash = { version = "2.0.2", optional = true }
|
||||
unicode-segmentation = "1.8.0"
|
||||
uuid = { version = "0.8.2", features = ["v4"] }
|
||||
htmlescape = "0.3.1"
|
||||
|
@ -9,7 +9,6 @@ use nu_protocol::{
|
||||
use regex::Regex;
|
||||
use rust_embed::RustEmbed;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::borrow::Cow;
|
||||
use std::collections::HashMap;
|
||||
use std::error::Error;
|
||||
use std::fmt::Write;
|
||||
@ -207,10 +206,7 @@ fn get_asset_by_name_as_html_themes(
|
||||
) -> Result<HtmlThemes, Box<dyn Error>> {
|
||||
match Assets::get(zip_name) {
|
||||
Some(content) => {
|
||||
let asset: Vec<u8> = match content {
|
||||
Cow::Borrowed(bytes) => bytes.into(),
|
||||
Cow::Owned(bytes) => bytes,
|
||||
};
|
||||
let asset: Vec<u8> = content.data.into();
|
||||
let reader = std::io::Cursor::new(asset);
|
||||
#[cfg(feature = "zip")]
|
||||
{
|
||||
|
Reference in New Issue
Block a user