Skip to content

Commit

Permalink
make _aux methods to take a FnMut argument
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Dec 15, 2024
1 parent eec03c3 commit 2fd4e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<S: Supply<CAPS>, const CAPS: u32> Stock<S, CAPS> {
&mut self,
terminals: impl IntoIterator<Item = impl Borrow<AuthToken>>,
mut writer: StrictWriter<impl WriteRaw>,
aux: impl Fn(Opid) -> I,
mut aux: impl FnMut(Opid) -> I,
) -> io::Result<()> {
let queue = terminals
.into_iter()
Expand Down Expand Up @@ -171,7 +171,7 @@ impl<S: Supply<CAPS>, const CAPS: u32> Stock<S, CAPS> {
pub fn accept_aux<T: StrictDecode>(
&mut self,
reader: &mut StrictReader<impl ReadRaw>,
aux: impl Fn(Opid, T),
mut aux: impl FnMut(Opid, T),
) -> Result<(), AcceptError> {
let articles = Articles::<CAPS>::strict_decode(reader)?;
self.articles.merge(articles)?;
Expand Down

0 comments on commit 2fd4e59

Please sign in to comment.