mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Clean up some warnings and use newer nightly compiler
This stops using the deprecated libc::uint32_t and libc::uint64_t types in favour of the native u32 and u64 types. It also uses a newer nightly compiler to get rid of the incorrect "unused no_mangle" warning when compiling incrementally. Finally the newer compiler prefers us to be explicit when implementing traits using the new dyn keyword.
This commit is contained in:
@@ -1536,7 +1536,7 @@ impl<T: AsRef<std::ffi::OsStr>> OsStrExt for T {
|
||||
// Implementation for os_str_to_c_string on windows.
|
||||
#[allow(dead_code)]
|
||||
fn os_str_to_c_string_unicode(
|
||||
os_str: &AsRef<std::ffi::OsStr>,
|
||||
os_str: &dyn AsRef<std::ffi::OsStr>,
|
||||
) -> Result<std::ffi::CString, CStringError> {
|
||||
match os_str.as_ref().to_str() {
|
||||
Some(val) => std::ffi::CString::new(val.as_bytes()).map_err(|err| match err {
|
||||
|
||||
Reference in New Issue
Block a user