mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
chore: fix and enforce compiler warnings on CI
This commit is contained in:
committed by
Friedel Ziegelmayer
parent
b44c7928f2
commit
73298c0273
@@ -4,6 +4,7 @@ set -ex
|
|||||||
|
|
||||||
export RUST_TEST_THREADS=1
|
export RUST_TEST_THREADS=1
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
|
export RUSTFLAGS='--deny warnings'
|
||||||
export OPT="--target=$TARGET"
|
export OPT="--target=$TARGET"
|
||||||
export OPT_RELEASE="--release ${OPT}"
|
export OPT_RELEASE="--release ${OPT}"
|
||||||
export OPT_FFI_RELEASE="--manifest-path=deltachat-ffi/Cargo.toml --release"
|
export OPT_FFI_RELEASE="--manifest-path=deltachat-ffi/Cargo.toml --release"
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ impl<'a> Chatlist<'a> {
|
|||||||
let query = query.trim().to_string();
|
let query = query.trim().to_string();
|
||||||
ensure!(!query.is_empty(), "missing query");
|
ensure!(!query.is_empty(), "missing query");
|
||||||
|
|
||||||
let strLikeCmd = format!("%{}%", query);
|
let str_like_cmd = format!("%{}%", query);
|
||||||
context.sql.query_map(
|
context.sql.query_map(
|
||||||
"SELECT c.id, m.id FROM chats c LEFT JOIN msgs m \
|
"SELECT c.id, m.id FROM chats c LEFT JOIN msgs m \
|
||||||
ON c.id=m.chat_id \
|
ON c.id=m.chat_id \
|
||||||
@@ -164,7 +164,7 @@ impl<'a> Chatlist<'a> {
|
|||||||
AND (hidden=0 OR (hidden=1 AND state=19))) WHERE c.id>9 \
|
AND (hidden=0 OR (hidden=1 AND state=19))) WHERE c.id>9 \
|
||||||
AND c.blocked=0 AND c.name LIKE ? \
|
AND c.blocked=0 AND c.name LIKE ? \
|
||||||
GROUP BY c.id ORDER BY IFNULL(m.timestamp,0) DESC, m.id DESC;",
|
GROUP BY c.id ORDER BY IFNULL(m.timestamp,0) DESC, m.id DESC;",
|
||||||
params![strLikeCmd],
|
params![str_like_cmd],
|
||||||
process_row,
|
process_row,
|
||||||
process_rows,
|
process_rows,
|
||||||
)?
|
)?
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ use crate::types::*;
|
|||||||
|
|
||||||
/* * the structure behind dc_array_t */
|
/* * the structure behind dc_array_t */
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
#[allow(non_camel_case_types)]
|
||||||
pub enum dc_array_t {
|
pub enum dc_array_t {
|
||||||
Locations(Vec<dc_location>),
|
Locations(Vec<dc_location>),
|
||||||
Uint(Vec<uintptr_t>),
|
Uint(Vec<uintptr_t>),
|
||||||
|
|||||||
2
src/x.rs
2
src/x.rs
@@ -1,5 +1,3 @@
|
|||||||
use crate::types::*;
|
|
||||||
|
|
||||||
pub use libc::{
|
pub use libc::{
|
||||||
calloc, exit, free, malloc, memcmp, memcpy, memmove, memset, realloc, strcat, strchr, strcmp,
|
calloc, exit, free, malloc, memcmp, memcpy, memmove, memset, realloc, strcat, strchr, strcmp,
|
||||||
strcpy, strcspn, strlen, strncmp, strncpy, strrchr, strspn, strstr, strtol, system,
|
strcpy, strcspn, strlen, strncmp, strncpy, strrchr, strspn, strstr, strtol, system,
|
||||||
|
|||||||
Reference in New Issue
Block a user