mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix a few problems in components/script/dom
(#31955)
* fixed various clippy warnings * fixed various clippy warnings * fixed various clippy warnings
This commit is contained in:
parent
9401102691
commit
00c4d798c9
5 changed files with 7 additions and 9 deletions
|
@ -90,7 +90,7 @@ pub struct FileReaderSharedFunctionality;
|
|||
|
||||
impl FileReaderSharedFunctionality {
|
||||
pub fn dataurl_format(blob_contents: &[u8], blob_type: String) -> DOMString {
|
||||
let base64 = base64::engine::general_purpose::STANDARD.encode(&blob_contents);
|
||||
let base64 = base64::engine::general_purpose::STANDARD.encode(blob_contents);
|
||||
|
||||
let dataurl = if blob_type.is_empty() {
|
||||
format!("data:base64,{}", base64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue