fix(clipboard): fix warnings
This commit is contained in:
parent
8f11bf6cc6
commit
d8412865f7
|
@ -97,18 +97,20 @@ fn generate_html_descriptor(html: &str) -> String {
|
||||||
// For more information, look here:
|
// For more information, look here:
|
||||||
// https://docs.microsoft.com/en-us/windows/win32/dataxchg/html-clipboard-format
|
// https://docs.microsoft.com/en-us/windows/win32/dataxchg/html-clipboard-format
|
||||||
// https://docs.microsoft.com/en-za/troubleshoot/cpp/add-html-code-clipboard
|
// https://docs.microsoft.com/en-za/troubleshoot/cpp/add-html-code-clipboard
|
||||||
let mut tokens = Vec::new();
|
|
||||||
tokens.push("Version:0.9");
|
|
||||||
tokens.push("StartHTML:<<STR*#>");
|
|
||||||
tokens.push("EndHTML:<<END*#>");
|
|
||||||
tokens.push("StartFragment:<<SFG#*>");
|
|
||||||
tokens.push("EndFragment:<<EFG#*>");
|
|
||||||
tokens.push("<html>");
|
|
||||||
tokens.push("<body>");
|
|
||||||
let content = format!("<!--StartFragment-->{}<!--EndFragment-->", html);
|
let content = format!("<!--StartFragment-->{}<!--EndFragment-->", html);
|
||||||
tokens.push(&content);
|
|
||||||
tokens.push("</body>");
|
let tokens = vec![
|
||||||
tokens.push("</html>");
|
"Version:0.9",
|
||||||
|
"StartHTML:<<STR*#>",
|
||||||
|
"EndHTML:<<END*#>",
|
||||||
|
"StartFragment:<<SFG#*>",
|
||||||
|
"EndFragment:<<EFG#*>",
|
||||||
|
"<html>",
|
||||||
|
"<body>",
|
||||||
|
&content,
|
||||||
|
"</body>",
|
||||||
|
"</html>",
|
||||||
|
];
|
||||||
|
|
||||||
let mut render = tokens.join("\r\n");
|
let mut render = tokens.join("\r\n");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user