From 8274c6bf1728bacf5174802cb6e82ee7e852f518 Mon Sep 17 00:00:00 2001 From: jikstra Date: Mon, 29 Jul 2019 16:23:43 +0200 Subject: [PATCH] Allow non_snake_case in dc_replace_bad_utf8_chars function --- src/dc_tools.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dc_tools.rs b/src/dc_tools.rs index 5e524bdbe..393b66860 100644 --- a/src/dc_tools.rs +++ b/src/dc_tools.rs @@ -263,6 +263,7 @@ pub unsafe fn dc_unify_lineends(buf: *mut libc::c_char) { } /* replace bad UTF-8 characters by sequences of `_` (to avoid problems in filenames, we do not use eg. `?`) the function is useful if strings are unexpectingly encoded eg. as ISO-8859-1 */ +#[allow(non_snake_case)] pub unsafe fn dc_replace_bad_utf8_chars(buf: *mut libc::c_char) { let mut OK_TO_CONTINUE = true; if buf.is_null() {