Skip to content

Commit

Permalink
serf: placate clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-levan committed Mar 18, 2024
1 parent 383b8e6 commit bf3b644
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions rust/ares/src/serf.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::hamt::Hamt;
use crate::{flog, interpreter};
use crate::interpreter::{inc, interpret, Error, Mote};
use crate::jets::cold::Cold;
use crate::jets::hot::{Hot, HotEntry};
Expand All @@ -13,6 +12,7 @@ use crate::noun::{Atom, Cell, DirectAtom, Noun, Slots, D, T};
use crate::persist::pma_meta_set;
use crate::persist::{pma_meta_get, pma_open, pma_sync, Persist};
use crate::trace::*;
use crate::{flog, interpreter};
use ares_macros::tas;
use signal_hook;
use signal_hook::consts::SIGINT;
Expand Down Expand Up @@ -353,7 +353,9 @@ pub fn serf(constant_hot_state: &[HotEntry]) -> io::Result<()> {
tas!(b"live") => {
let inner = slot(writ, 6)?.as_direct().unwrap();
match inner.data() {
tas!(b"cram") => flog!(&mut context.nock_context, "\r %cram: not implemented"),
tas!(b"cram") => {
flog!(&mut context.nock_context, "\r %cram: not implemented");
}
tas!(b"exit") => {
flog!(&mut context.nock_context, "\r %exit");
std::process::exit(0);
Expand All @@ -362,9 +364,15 @@ pub fn serf(constant_hot_state: &[HotEntry]) -> io::Result<()> {
// XX what is eve for?
pma_sync();
}
tas!(b"meld") => flog!(&mut context.nock_context, "\r %meld: not implemented"),
tas!(b"pack") => flog!(&mut context.nock_context, "\r %pack: not implemented"),
_ => flog!(&mut context.nock_context, "unknown live"),
tas!(b"meld") => {
flog!(&mut context.nock_context, "\r %meld: not implemented");
}
tas!(b"pack") => {
flog!(&mut context.nock_context, "\r %pack: not implemented");
}
_ => {
flog!(&mut context.nock_context, "unknown live");
}
}
context.live();
}
Expand Down

0 comments on commit bf3b644

Please sign in to comment.