Skip to content

Commit

Permalink
make it compatible with cargo-lints clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Apr 2, 2024
1 parent 233488c commit 9696f22
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions atoma-inference/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ mod tests {
type ModelInput = ();

fn into_model_input(self) -> Self::ModelInput {
()
}

fn is_node_authorized(&self, _: &PublicKey) -> bool {
Expand All @@ -209,7 +208,6 @@ mod tests {
type ModelOutput = ();

fn from_model_output(_: Self::ModelOutput) -> Self {
()
}
}

Expand Down Expand Up @@ -238,7 +236,7 @@ mod tests {
const CONFIG_FILE_PATH: &str = "./inference.toml";
const PRIVATE_KEY_FILE_PATH: &str = "./private_key";

let private_key = PrivateKey::new(&mut OsRng);
let private_key = PrivateKey::new(OsRng);
std::fs::write(PRIVATE_KEY_FILE_PATH, private_key.to_bytes()).unwrap();

let config_data = Value::Table(toml! {
Expand All @@ -260,8 +258,8 @@ mod tests {
let (resp_sender, _) = tokio::sync::mpsc::channel::<()>(1);

let _ = ModelService::<(), ()>::start::<TestModelInstance, MockApi>(
PathBuf::try_from(CONFIG_FILE_PATH).unwrap(),
PathBuf::try_from(PRIVATE_KEY_FILE_PATH).unwrap(),
PathBuf::from(CONFIG_FILE_PATH),
PathBuf::from(PRIVATE_KEY_FILE_PATH),
req_receiver,
resp_sender,
)
Expand Down

0 comments on commit 9696f22

Please sign in to comment.