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 } }