chore: update 12/2/21 (#1181)

Updates for the new rust version
This commit is contained in:
Ethan Donowitz 2021-12-03 18:17:10 -05:00 committed by GitHub
parent bed59e2cb7
commit 04cf2344d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,4 @@
FROM rust:1.54-buster as builder
FROM rust:1.57-buster as builder
WORKDIR /app
ADD . /app
ENV PATH=$PATH:/root/.cargo/bin

View File

@ -189,7 +189,6 @@ pub fn do_append(
#[derive(Debug, QueryableByName)]
#[table_name = "batch_upload_items"]
struct ExistsResult {
user_id: i64,
batch_id: i64,
id: String,
}

View File

@ -18,21 +18,12 @@ use slog::{Key, Record, KV};
use crate::server::user_agent::parse_user_agent;
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct Tags {
pub tags: HashMap<String, String>,
pub extra: HashMap<String, String>,
}
impl Default for Tags {
fn default() -> Tags {
Tags {
tags: HashMap::new(),
extra: HashMap::new(),
}
}
}
impl Serialize for Tags {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where