From 48545e3a5781999bcd07714f25e9c125c4d5786f Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 30 Sep 2023 01:29:56 -0700 Subject: [PATCH] Use From instead of Into --- Cargo.toml | 2 +- src/vector.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c44ef5..01a214c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ repository = "https://github.com/pgvector/pgvector-rust" license = "MIT OR Apache-2.0" authors = ["Andrew Kane "] edition = "2018" -rust-version = "1.32.0" +rust-version = "1.56.0" readme = "README.md" [dependencies] diff --git a/src/vector.rs b/src/vector.rs index 876523f..3659d62 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -16,9 +16,9 @@ impl From> for Vector { } } -impl Into> for Vector { - fn into(self) -> Vec { - self.0 +impl From for Vec { + fn from(val: Vector) -> Self { + val.0 } }