From 89549b367b694ae7a5570d5e50975979aa1bceee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Apr 2022 21:38:37 +0100 Subject: Bump uuid from 0.8.2 to 1.0.0 (#311) * Bump uuid from 0.8.2 to 1.0.0 Bumps [uuid](https://github.com/uuid-rs/uuid) from 0.8.2 to 1.0.0. - [Release notes](https://github.com/uuid-rs/uuid/releases) - [Commits](https://github.com/uuid-rs/uuid/compare/0.8.2...1.0.0) --- updated-dependencies: - dependency-name: uuid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * patch Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Conrad Ludgate --- atuin-server/Cargo.toml | 4 ++-- atuin-server/src/handlers/user.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'atuin-server') diff --git a/atuin-server/Cargo.toml b/atuin-server/Cargo.toml index c1342bfb..480b090a 100644 --- a/atuin-server/Cargo.toml +++ b/atuin-server/Cargo.toml @@ -14,7 +14,7 @@ atuin-common = { path = "../atuin-common", version = "0.8.1" } tracing = "0.1" chrono = { version = "0.4", features = ["serde"] } eyre = "0.6" -uuid = { version = "0.8", features = ["v4"] } +uuid = { version = "1.0", features = ["v4"] } whoami = "1.1.2" config = "0.13" serde = { version = "1.0.126", features = ["derive"] } @@ -24,7 +24,7 @@ base64 = "0.13.0" rand = "0.8.4" rust-crypto = "^0.2" tokio = { version = "1", features = ["full"] } -sqlx = { version = "0.5", features = [ "runtime-tokio-rustls", "uuid", "chrono", "postgres" ] } +sqlx = { version = "0.5", features = [ "runtime-tokio-rustls", "chrono", "postgres" ] } async-trait = "0.1.49" axum = "0.5" http = "0.2" diff --git a/atuin-server/src/handlers/user.rs b/atuin-server/src/handlers/user.rs index 862f228c..a57269a0 100644 --- a/atuin-server/src/handlers/user.rs +++ b/atuin-server/src/handlers/user.rs @@ -82,7 +82,7 @@ pub async fn register( } }; - let token = Uuid::new_v4().to_simple().to_string(); + let token = Uuid::new_v4().as_simple().to_string(); let new_session = NewSession { user_id, -- cgit v1.3.1