Skip to content

Commit

Permalink
clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kafonek committed Dec 20, 2023
1 parent 44db179 commit 61184f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_kernels.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use std::sync::Arc;

use kernel_sidecar_rs::client::Client;
use kernel_sidecar_rs::handlers::OutputHandler;
use kernel_sidecar_rs::handlers::{Handler, MessageCountHandler};
use kernel_sidecar_rs::jupyter::iopub_content::stream::StreamName;
use kernel_sidecar_rs::handlers::{Handler, MessageCountHandler, OutputHandler};
use kernel_sidecar_rs::kernels::JupyterKernel;
use kernel_sidecar_rs::notebook::Output;
use tokio::sync::RwLock;
Expand Down Expand Up @@ -81,6 +79,7 @@ struct SimpleOutputHandler {
}

impl SimpleOutputHandler {
#[allow(dead_code)]
pub fn new() -> Self {
Self {
output: Arc::new(RwLock::new(Vec::new())),
Expand All @@ -104,7 +103,10 @@ impl OutputHandler for SimpleOutputHandler {
#[tokio::test]
#[cfg(feature = "test_ipython")]
async fn test_clear_output() {
// imports only used in this test, makes clippy yell when other tests run
use indoc::indoc;
use kernel_sidecar_rs::jupyter::iopub_content::stream::StreamName;

let (_kernel, client) = start_kernel().await;

// send execute_request
Expand Down

0 comments on commit 61184f1

Please sign in to comment.