Skip to content

Commit

Permalink
echo example chore: Mixer address doesn't need explicit type
Browse files Browse the repository at this point in the history
Type inference is pretty powerful.
  • Loading branch information
strohel committed Feb 25, 2021
1 parent d1e38b6 commit 5a212b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn main() -> Result<(), Error> {
let output_addr = system.spawn_with_capacity(Output, 60)?;

// Create Mixer address explicitly in order to break the circular dependency loop.
let mixer_addr = Addr::<Mixer>::default();
let mixer_addr = Addr::default();

// Damper feeds back into Mixer.
let damper_addr = system.spawn(Damper { next: mixer_addr.recipient() })?;
Expand Down

0 comments on commit 5a212b9

Please sign in to comment.