Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjmcghee committed Jan 13, 2024
1 parent 2f45ff8 commit 67be43f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src-tauri/src/core/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ use candle::Tensor;
use candle_nn::VarBuilder;
use candle_transformers::models::bert::{BertModel, Config, HiddenAct, DTYPE};
use lazy_static::lazy_static;
use std::ffi::{CStr, CString};
use std::os::raw::c_char;


use std::sync::Mutex;
use tokenizers::{PaddingParams, Tokenizer};

Expand Down Expand Up @@ -133,7 +133,7 @@ pub fn generate_embeddings(text: &str) -> EmbeddingResult {
let elem_count = reshaped_embeddings.elem_count();
let out = match reshaped_embeddings.to_vec1::<f32>() {
Ok(a) => a,
Err(e) => vec![],
Err(_e) => vec![],
};

EmbeddingResult {
Expand Down
3 changes: 1 addition & 2 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

use std::{
process::exit,
sync::{Arc, Mutex},
};
use tauri::{
CustomMenuItem, LogicalPosition, LogicalSize, Manager, SystemTray, SystemTrayEvent,
CustomMenuItem, LogicalPosition, Manager, SystemTray, SystemTrayEvent,
SystemTrayMenu, SystemTrayMenuItem,
};

Expand Down

0 comments on commit 67be43f

Please sign in to comment.