Skip to content

Commit

Permalink
Update rust to 1.71 in devcontainer and fix map_clone
Browse files Browse the repository at this point in the history
Signed-off-by: Christian König <[email protected]>
  • Loading branch information
yubiuser committed Mar 31, 2024
1 parent 9929635 commit 0baf450
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions core/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,7 @@ impl Session {
}

pub fn get_user_attribute(&self, key: &str) -> Option<String> {
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 {
Expand Down

0 comments on commit 0baf450

Please sign in to comment.