Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Jan 29, 2022
1 parent 211c6e8 commit af8df7c
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 13 deletions.
85 changes: 77 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ edition = "2018"

[dependencies]
yaml-rust = "0.4"
lazy_static = "1.2.0"
lazy_static = "1.2"
ansi_colours = "1.0"
dirs = "3.0.0"
rust-embed = "5.6.0"
dirs = "4.0"
rust-embed = "6.3"

[dependencies.clap]
version = "2"
Expand Down
2 changes: 1 addition & 1 deletion src/filetypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl FileTypes {
pub fn from_embedded() -> Result<FileTypes> {
let filetypes = ConfigAssets::get("filetypes.yml").unwrap();

let contents = std::str::from_utf8(filetypes.as_ref())
let contents = std::str::from_utf8(&filetypes.data)
.map_err(|_| VividError::CouldNotLoadDatabaseFrom(String::from("embedded defaults")))?;
Self::from_string(contents)
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn load_theme(
Some(path) => return Theme::from_path(path, color_mode),
None => {
if let Some(embedded_file) = ThemeAssets::get(&theme_file) {
if let Ok(embedded_data) = std::str::from_utf8(embedded_file.as_ref()) {
if let Ok(embedded_data) = std::str::from_utf8(&embedded_file.data) {
return Theme::from_string(embedded_data, color_mode);
}
}
Expand Down

0 comments on commit af8df7c

Please sign in to comment.