Skip to content

Commit

Permalink
Fix cargo fmt errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Oct 5, 2019
1 parent 8668d5c commit bbabba4
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 19 deletions.
9 changes: 3 additions & 6 deletions benches/bench_one_for_one.rs
Expand Up @@ -6,17 +6,14 @@ extern crate test;
mod tests {
use super::*;
use bastion::bastion::Bastion;

use bastion::config::BastionConfig;



use log::LevelFilter;

use std::sync::Once;
use std::{thread, time};
use test::Bencher;



static INIT: Once = Once::new();

Expand Down
4 changes: 2 additions & 2 deletions examples/root_spv.rs
Expand Up @@ -3,7 +3,7 @@ use bastion::prelude::*;
fn main() {
Bastion::platform();

let message = String::from("Some message to be passed");
let message = String::from("a message");

Bastion::spawn(
|context: BastionContext, msg: Box<dyn Message>| {
Expand All @@ -13,7 +13,7 @@ fn main() {
_ => println!("other message type...")
}

println!("root supervisor - spawn_at_root - 1");
println!("spawned at root");

// Rebind to the system
context.hook();
Expand Down
1 change: 0 additions & 1 deletion examples/spawn_from_context.rs
@@ -1,7 +1,6 @@
use bastion::prelude::*;
use log::LevelFilter;


fn main() {
let config = BastionConfig {
log_level: LevelFilter::Debug,
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Expand Up @@ -26,7 +26,9 @@
//! All up to you. And it should be up to you.
//!

#![doc(html_logo_url = "https://raw.githubusercontent.com/bastion-rs/bastion/master/img/bastion-logo.png")]
#![doc(
html_logo_url = "https://raw.githubusercontent.com/bastion-rs/bastion/master/img/bastion-logo.png"
)]

#[macro_use]
extern crate log;
Expand Down
1 change: 0 additions & 1 deletion src/macros.rs
Expand Up @@ -2,7 +2,6 @@
//! Macros to use in processes and defining the architecture of runtime.
//!


///
/// Matches incoming messages to the process.
/// Always have a `default` case to execute if unknown message arrives to the process.
Expand Down
1 change: 0 additions & 1 deletion src/supervisor.rs
Expand Up @@ -296,7 +296,6 @@ impl Supervisor {
}
}


// FIXME: There might be discrepancy between passed self and referenced self.
// Fix this with either passing reference without Box (lifetimes sigh!)
// Or use channels to send back to the supervision tree.
Expand Down
6 changes: 2 additions & 4 deletions tests/lib.rs
@@ -1,16 +1,14 @@
#[cfg(test)]
mod tests {
use bastion::bastion::Bastion;

use bastion::config::BastionConfig;
use bastion::context::BastionContext;
use bastion::supervisor::SupervisionStrategy;
use log::LevelFilter;

use std::sync::Once;
use std::{fs, thread, time};



static INIT: Once = Once::new();

Expand Down
4 changes: 1 addition & 3 deletions tests/test_prelude.rs
Expand Up @@ -3,11 +3,9 @@ mod tests {
use bastion::prelude::*;

use log::LevelFilter;

use std::sync::Once;
use std::{thread, time};



static INIT: Once = Once::new();

Expand Down

0 comments on commit bbabba4

Please sign in to comment.