mirror of
https://github.com/1Password/arboard.git
synced 2025-07-07 13:25:18 +00:00
Resolve new Clippy lints
This commit is contained in:
parent
8f6bab7d48
commit
68ea2074ac
1 changed files with 2 additions and 14 deletions
|
@ -37,7 +37,7 @@ mod image_data {
|
|||
|
||||
fn last_error(message: &str) -> Error {
|
||||
let os_error = io::Error::last_os_error();
|
||||
Error::unknown(format!("{}: {}", message, os_error))
|
||||
Error::unknown(format!("{message}: {os_error}"))
|
||||
}
|
||||
|
||||
unsafe fn global_unlock_checked(hdata: HGLOBAL) {
|
||||
|
@ -823,18 +823,6 @@ fn wrap_html(ctn: &str) -> String {
|
|||
let n_end_frag = n_start_frag + ctn.len();
|
||||
let n_end_html = n_end_frag + c_end_frag.len();
|
||||
format!(
|
||||
"{}{}{:010}{}{:010}{}{:010}{}{:010}{}{}{}",
|
||||
h_version,
|
||||
h_start_html,
|
||||
n_start_html,
|
||||
h_end_html,
|
||||
n_end_html,
|
||||
h_start_frag,
|
||||
n_start_frag,
|
||||
h_end_frag,
|
||||
n_end_frag,
|
||||
c_start_frag,
|
||||
ctn,
|
||||
c_end_frag,
|
||||
"{h_version}{h_start_html}{n_start_html:010}{h_end_html}{n_end_html:010}{h_start_frag}{n_start_frag:010}{h_end_frag}{n_end_frag:010}{c_start_frag}{ctn}{c_end_frag}"
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue