mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
upgrade some crates, fix scrap benchmark on mac, fix compile issue on
osx10.14
This commit is contained in:
@@ -787,3 +787,15 @@ pub fn handle_url_scheme(url: String) {
|
||||
let _ = crate::run_me(vec![url]);
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn encode64<T: AsRef<[u8]>>(input: T) -> String {
|
||||
#[allow(deprecated)]
|
||||
base64::encode(input)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn decode64<T: AsRef<[u8]>>(input: T) -> Result<Vec<u8>, base64::DecodeError> {
|
||||
#[allow(deprecated)]
|
||||
base64::decode(input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user