Fix parts of CI (#304)
* Run cargo fmt, hide clippy::cmp_owned errors * Bump deps * Fix failing test * Update src/client.rs --------- Co-authored-by: Matthew Esposito <matt@matthew.science>
This commit is contained in:
parent
a96894c743
commit
d17d097b12
736
Cargo.lock
generated
736
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
// CRATES
|
// CRATES
|
||||||
use crate::client::json;
|
use crate::client::json;
|
||||||
use crate::config::get_setting;
|
use crate::config::get_setting;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
// CRATES
|
// CRATES
|
||||||
use crate::utils::{self, catch_random, error, filter_posts, format_num, format_url, get_filters, param, redirect, setting, template, val, Post, Preferences};
|
use crate::utils::{self, catch_random, error, filter_posts, format_num, format_url, get_filters, param, redirect, setting, template, val, Post, Preferences};
|
||||||
use crate::{
|
use crate::{
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
use brotli::enc::{BrotliCompress, BrotliEncoderParams};
|
use brotli::enc::{BrotliCompress, BrotliEncoderParams};
|
||||||
use cached::proc_macro::cached;
|
use cached::proc_macro::cached;
|
||||||
@ -195,6 +196,12 @@ impl Route<'_> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Server {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Server {
|
impl Server {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
@ -723,7 +730,7 @@ mod tests {
|
|||||||
|
|
||||||
CompressionType::Brotli => Box::new(BrotliDecompressor::new(body_cursor, expected_lorem_ipsum.len())),
|
CompressionType::Brotli => Box::new(BrotliDecompressor::new(body_cursor, expected_lorem_ipsum.len())),
|
||||||
|
|
||||||
_ => panic!("no decompressor for {}", expected_encoding.to_string()),
|
_ => panic!("no decompressor for {}", expected_encoding),
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut decompressed = Vec::<u8>::new();
|
let mut decompressed = Vec::<u8>::new();
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
// CRATES
|
// CRATES
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
use crate::{config, utils};
|
use crate::{config, utils};
|
||||||
// CRATES
|
// CRATES
|
||||||
use crate::utils::{
|
use crate::utils::{
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
// CRATES
|
// CRATES
|
||||||
use crate::client::json;
|
use crate::client::json;
|
||||||
use crate::server::RequestExt;
|
use crate::server::RequestExt;
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
#![allow(clippy::cmp_owned)]
|
||||||
|
|
||||||
use crate::config::{self, get_setting};
|
use crate::config::{self, get_setting};
|
||||||
//
|
//
|
||||||
// CRATES
|
// CRATES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user