Skip to content

Commit c4616b5

Browse files
Update version to 0.6.2 and simplify embedding function calls in examples
- Bumped the version in `Cargo.toml` to 0.6.2. - Modified `bert.rs` to simplify the embedding function calls by removing explicit type annotations for the `None` parameter, enhancing code readability.
1 parent a44b6b7 commit c4616b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = "Embed anything at lightning speed"
1515
repository = "https://github.com/StarlightSearch/EmbedAnything"
1616
authors = ["Akshay Ballal <arballal95@gmail.com>"]
1717
exclude = ["test_files/*", "python", "*.py", "pyproject.toml", "examples/images/*", "mkdocs.yml", "docs/*", "tests/*", ".github", "Dockerfile", "docs"]
18-
version = "0.6.1"
18+
version = "0.6.2"
1919

2020
[workspace.dependencies]
2121
pdf-extract = "0.9.0"

rust/examples/bert.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async fn main() {
3030
"test_files/test.pdf",
3131
&model,
3232
Some(&config),
33-
None::<fn(Vec<EmbedData>)>,
33+
None,
3434
)
3535
.await
3636
.unwrap()
@@ -40,7 +40,7 @@ async fn main() {
4040
vec![PathBuf::from("test_files/test.pdf"), PathBuf::from("test_files/test.txt")],
4141
&model,
4242
Some(&config),
43-
None::<fn(Vec<EmbedData>)>,
43+
None,
4444
)
4545
.await
4646
.unwrap()
@@ -58,7 +58,7 @@ async fn main() {
5858
None,
5959
// Some(vec!["txt".to_string()]),
6060
Some(&config),
61-
None::<fn(Vec<EmbedData>)>,
61+
None,
6262
)
6363
.await
6464
.unwrap()

0 commit comments

Comments
 (0)