fix(deps): update rust crate base64 to 0.22.0 #16
1 changed files with 3 additions and 2 deletions
|
@ -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