From ef10a2df36eacb6dcff9087d5491ce7024c19ac5 Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 15 Jan 2024 01:48:40 -0500 Subject: [PATCH] add more lints, bump image and crossbeam Signed-off-by: strawberry --- Cargo.lock | 21 ++++----------------- Cargo.toml | 12 +++++++----- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 28a5ab94..8eb89b63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -488,11 +488,10 @@ dependencies = [ [[package]] name = "crossbeam" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6eb9105919ca8e40d437fc9cbb8f1975d916f1bd28afe795a48aae32a2cc8920" +checksum = "1137cd7e7fc0fb5d3c5a8678be38ec56e819125d8d7907411fe24ccb943faca8" dependencies = [ - "cfg-if", "crossbeam-channel", "crossbeam-deque", "crossbeam-epoch", @@ -1088,16 +1087,15 @@ dependencies = [ [[package]] name = "image" -version = "0.24.7" +version = "0.24.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f3dfdbdd72063086ff443e297b61695500514b1e41095b6fb9a5ab48a70a711" +checksum = "034bbe799d1909622a74d1193aa50147769440040ff36cb2baa947609b0a4e23" dependencies = [ "bytemuck", "byteorder", "color_quant", "gif", "jpeg-decoder", - "num-rational", "num-traits", "png", ] @@ -1476,17 +1474,6 @@ dependencies = [ "num-traits", ] -[[package]] -name = "num-rational" -version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.16" diff --git a/Cargo.toml b/Cargo.toml index 7cee4146..806e3bfe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,7 +57,7 @@ reqwest = { version = "0.11.23", default-features = false, features = ["rustls-t # Used for conduit::Error type thiserror = "1.0.56" # Used to generate thumbnails for images -image = { version = "0.24.7", default-features = false, features = ["jpeg", "png", "gif", "webp"] } +image = { version = "0.24.8", default-features = false, features = ["jpeg", "png", "gif", "webp"] } # Used to encode server public key base64 = "0.21.7" # Used when hashing the state @@ -79,7 +79,7 @@ tracing-opentelemetry = "0.22.0" lru-cache = "0.1.2" rusqlite = { version = "0.30.0", optional = true, features = ["bundled"] } parking_lot = { version = "0.12.1", optional = true } -crossbeam = { version = "0.8.3", optional = true } +crossbeam = { version = "0.8.4", optional = true } num_cpus = "1.16.0" threadpool = "1.8.1" # Used for ruma wrapper @@ -213,7 +213,7 @@ ref_to_mut = "warn" char_lit_as_u8 = "warn" dbg_macro = "warn" empty_structs_with_brackets = "warn" -# get_unwrap = "warn" +get_unwrap = "warn" # if_then_some_else_none = "warn" # let_underscore_must_use = "warn" # map_err_ignore = "warn" @@ -229,11 +229,13 @@ rest_pat_in_fully_bound_structs = "warn" str_to_string = "warn" # string_add = "warn" # string_slice = "warn" -# string_to_string = "warn" +string_to_string = "warn" tests_outside_test_module = "warn" undocumented_unsafe_blocks = "warn" unneeded_field_pattern = "warn" unseparated_literal_suffix = "warn" # unwrap_used = "warn" # expect_used = "warn" -wildcard_dependencies = "warn" \ No newline at end of file +wildcard_dependencies = "warn" +# or_fun_call = "warn" +unnecessary_lazy_evaluations = "warn" \ No newline at end of file