Skip to content

Commit 7fb6b76

Browse files
committed
formatting
1 parent e137e3e commit 7fb6b76

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

plugins/slipstream_plugin_manager/src/slipstream_manager.rs

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ use snarkvm_slipstream_plugin_interface::slipstream_plugin_interface::Slipstream
1717
use tokio::sync::oneshot::Sender as OneShotSender;
1818

1919
use libloading::Library;
20-
use std::ops::{Deref, DerefMut};
21-
use std::path::{Path, PathBuf};
20+
use std::{
21+
ops::{Deref, DerefMut},
22+
path::{Path, PathBuf}
23+
};
2224
use tracing::{info, warn};
2325

2426
/// A type alias for the result of plugin manager operations.
@@ -407,14 +409,15 @@ pub(crate) fn load_plugin_from_config(
407409

408410
#[cfg(test)]
409411
mod tests {
410-
use {
411-
crate::slipstream_manager::{
412-
LoadedSlipstreamPlugin, SlipstreamPluginManager, TESTPLUGIN_CONFIG, TESTPLUGIN2_CONFIG,
413-
},
414-
libloading::Library,
415-
snarkvm_slipstream_plugin_interface::slipstream_plugin_interface::SlipstreamPlugin,
416-
std::sync::{Arc, RwLock},
412+
use crate::slipstream_manager::{
413+
LoadedSlipstreamPlugin,
414+
SlipstreamPluginManager,
415+
TESTPLUGIN_CONFIG,
416+
TESTPLUGIN2_CONFIG,
417417
};
418+
use libloading::Library;
419+
use snarkvm_slipstream_plugin_interface::slipstream_plugin_interface::SlipstreamPlugin;
420+
use std::sync::{Arc, RwLock};
418421

419422
pub(super) fn dummy_plugin_and_library<P: SlipstreamPlugin>(
420423
plugin: P,
@@ -501,9 +504,11 @@ mod tests {
501504
fn name(&self) -> &'static str {
502505
"tracking"
503506
}
507+
504508
fn history_enabled(&self) -> bool {
505509
true
506510
}
511+
507512
fn notify_mapping_update(
508513
&self,
509514
_program_id: &[u8],

plugins/slipstream_plugin_manager/src/slipstream_service.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515

1616
use crate::slipstream_manager::SlipstreamPluginManager;
1717

18-
use std::{path::PathBuf, sync::Arc, sync::RwLock};
18+
use std::{
19+
path::PathBuf,
20+
sync::{Arc, RwLock}
21+
};
1922
use thiserror::Error;
2023

2124
/// The service managing the Slipstream plugin workflow.

0 commit comments

Comments
 (0)