From 566d255b33fa8ab928d43a7322e909788fc6bace Mon Sep 17 00:00:00 2001 From: jikstra Date: Mon, 29 Jul 2019 16:16:47 +0200 Subject: [PATCH] run cargo fmt --- src/dc_tools.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dc_tools.rs b/src/dc_tools.rs index 91ead6bbe..5e524bdbe 100644 --- a/src/dc_tools.rs +++ b/src/dc_tools.rs @@ -317,13 +317,13 @@ pub unsafe fn dc_replace_bad_utf8_chars(buf: *mut libc::c_char) { i += 1 } if OK_TO_CONTINUE == false { - while 0 != *p1 { - if *p1 as libc::c_int > 0x7fi32 { - *p1 = '_' as i32 as libc::c_uchar - } - p1 = p1.offset(1isize) + while 0 != *p1 { + if *p1 as libc::c_int > 0x7fi32 { + *p1 = '_' as i32 as libc::c_uchar } - return; + p1 = p1.offset(1isize) + } + return; } }