From 0baf45086fb282f146b564ced2d46cd8c703ccc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sun, 31 Mar 2024 11:35:36 +0000 Subject: [PATCH] Update rust to 1.71 in devcontainer and fix map_clone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- .devcontainer/Dockerfile | 2 +- core/src/session.rs | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a88d49ae4..31a4f0def 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 ARG debian_version=slim-bookworm -ARG rust_version=1.70.0 +ARG rust_version=1.71.0 FROM rust:${rust_version}-${debian_version} ARG DEBIAN_FRONTEND=noninteractive diff --git a/core/src/session.rs b/core/src/session.rs index 69125e17d..7801d68b8 100755 --- a/core/src/session.rs +++ b/core/src/session.rs @@ -513,13 +513,7 @@ impl Session { } pub fn get_user_attribute(&self, key: &str) -> Option { - self.0 - .data - .read() - .user_data - .attributes - .get(key) - .map(Clone::clone) + self.0.data.read().user_data.attributes.get(key).cloned() } fn weak(&self) -> SessionWeak {