fix(deps): update rust crate base64 to 0.22.0 #16
2 changed files with 4 additions and 3 deletions
|
@ -14,7 +14,7 @@ readme = "README.md"
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# atty = "0.2.14"
|
# atty = "0.2.14"
|
||||||
async-std = "1.12.0"
|
async-std = "1.12.0"
|
||||||
base64 = "0.13.0"
|
base64 = "0.22.0"
|
||||||
chrono = "0.4.36"
|
chrono = "0.4.36"
|
||||||
clap = { version = "2.34.0", features = ["yaml"] }
|
clap = { version = "2.34.0", features = ["yaml"] }
|
||||||
colored = "2.1.0"
|
colored = "2.1.0"
|
||||||
|
|
|
@ -4,7 +4,8 @@ use std::{
|
||||||
path::Path,
|
path::Path,
|
||||||
};
|
};
|
||||||
|
|
||||||
use base64::encode;
|
use base64::prelude::*;
|
||||||
|
|
||||||
use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Table};
|
use comfy_table::{Attribute, Cell, CellAlignment, Color, ContentArrangement, Table};
|
||||||
use html5ever::{LocalName, Namespace, QualName};
|
use html5ever::{LocalName, Namespace, QualName};
|
||||||
use indicatif::{ProgressBar, ProgressStyle};
|
use indicatif::{ProgressBar, ProgressStyle};
|
||||||
|
@ -267,7 +268,7 @@ fn update_imgs_base64(article: &Article) -> Result<(), std::io::Error> {
|
||||||
let img_base64_str = format!(
|
let img_base64_str = format!(
|
||||||
"data:image:{};base64,{}",
|
"data:image:{};base64,{}",
|
||||||
mime_type.as_deref().unwrap_or("image/*"),
|
mime_type.as_deref().unwrap_or("image/*"),
|
||||||
encode(img_bytes)
|
BASE64_STANDARD.encode(img_bytes)
|
||||||
);
|
);
|
||||||
|
|
||||||
let img_elems = article
|
let img_elems = article
|
||||||
|
|
Loading…
Reference in a new issue