Skip to content

Commit 04b0760

Browse files
author
Matthijs van Otterdijk
committed
suppress a lot of warnings
1 parent e2814a4 commit 04b0760

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/indexer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(unused, dead_code)]
12
use crate::{
23
openai::embeddings_for,
34
server::Operation,
@@ -8,7 +9,7 @@ use hnsw::{Hnsw, Searcher};
89
use rand_pcg::Lcg128Xsl64;
910
use serde::{Deserialize, Serialize};
1011
use space::{Metric, Neighbor};
11-
use std::{fs::File, sync::Arc};
12+
use std::fs::File;
1213
use std::{
1314
io,
1415
iter::{self, zip},

src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use std::future;
21
use std::io::ErrorKind;
32
use std::path::Path;
43

src/openai.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
#![allow(unused, dead_code)]
12
use lazy_static::lazy_static;
2-
use rand::Rng;
3-
use reqwest::{header::HeaderValue, Body, Client, Method, Request, Response, StatusCode, Url};
3+
use reqwest::{header::HeaderValue, Body, Client, Method, Request, StatusCode, Url};
44
use serde::{
55
de::{SeqAccess, Visitor},
66
Deserialize, Deserializer, Serialize,

src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(unused, dead_code)]
12
use bytes::Bytes;
23
use futures::StreamExt;
34
use futures::TryStreamExt;
@@ -10,7 +11,6 @@ use lazy_static::lazy_static;
1011
use rand::distributions::Alphanumeric;
1112
use rand::Rng;
1213
use regex::Regex;
13-
use reqwest::Url;
1414
use serde::Serialize;
1515
use serde::{self, Deserialize};
1616
use std::collections::HashSet;

src/vecmath.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(unused)]
12
use rand::Rng;
23

34
pub const EMBEDDING_LENGTH: usize = 1536;

src/vectors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused)]
2+
13
use std::collections::HashMap;
24
use std::fmt;
35
use std::fs::{File, OpenOptions};
@@ -516,7 +518,7 @@ impl Deref for LoadedVec {
516518

517519
impl PartialEq for LoadedVec {
518520
fn eq(&self, other: &Self) -> bool {
519-
*self == *other
521+
**self == **other
520522
}
521523
}
522524

0 commit comments

Comments
 (0)