Skip to content

Commit

Permalink
style: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
strasdat committed Jan 14, 2024
1 parent bc77523 commit 19ee11e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/actors/printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<T: Clone + Debug + Display + Default + Sync + Send + 'static>
) -> Self {
let m = InboundChannel::new(
builder.context,
actor_name.clone(),
actor_name,
&builder.sender,
PrinterInboundMessage::Printable(T::default()).inbound_channel(),
);
Expand Down
2 changes: 1 addition & 1 deletion src/compute/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub enum CancelRequest {
impl CancelRequest {
/// Unique name for cancel request inbound channel. This special inbound channel is not
/// associated with any actor but with the pipeline itself.
pub const CANCEL_REQUEST_INBOUND_CHANNEL: &str = "CANCEL";
pub const CANCEL_REQUEST_INBOUND_CHANNEL: &'static str = "CANCEL";
}

impl InboundMessage for CancelRequest {
Expand Down
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,24 +174,27 @@
//! # use hollywood::examples::moving_average::{MovingAverage, MovingAverageProp};
//! let pipeline = Context::configure(&mut |context| {
//! let mut timer = Periodic::new_with_period(context, 1.0);
//! let mut moving_average = MovingAverage::new_default_init_state(
//! let mut moving_average = MovingAverage::from_prop_and_state(
//! context,
//! MovingAverageProp {
//! alpha: 0.3,
//! ..Default::default()
//! },
//! MovingAverageState::default(),
//! );

Check failure on line 184 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

failed to resolve: use of undeclared type `MovingAverageState`
//! let mut time_printer = Printer::<f64>::new_default_init_state(
//! let mut time_printer = Printer::<f64>::from_prop_and_state(
//! context,
//! PrinterProp {
//! topic: "time".to_string(),
//! },
//! PrinterState::default(),
//! );

Check failure on line 191 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

failed to resolve: use of undeclared type `PrinterState`
//! let mut average_printer = Printer::<f64>::new_default_init_state(
//! let mut average_printer = Printer::<f64>::from_prop_and_state(
//! context,
//! PrinterProp {
//! topic: "average".to_string(),
//! },
//! PrinterState::default(),
//! );

Check failure on line 198 in src/lib.rs

View workflow job for this annotation

GitHub Actions / Test Suite

failed to resolve: use of undeclared type `PrinterState`
//! timer
//! .outbound
Expand Down

0 comments on commit 19ee11e

Please sign in to comment.