RustyLee Cleans up code formatting

Removes unnecessary line breaks and comments, improving code readability and consistency.
Consolidates multi-line function signatures and variable declarations into single lines.
This commit is contained in:
Russell Gilbert 2026-03-14 09:44:17 +00:00
parent 8195a3ccad
commit 33ae160566

View file

@ -18,10 +18,7 @@ impl OrganFactory {
}
impl OrganFactory {
pub fn build_organs(
// The Brain's "Inbox" mouth - we'll clone this for each organ
brain_tx: Sender<BrainMessage>
) -> Vec<OrganSocket> {
pub fn build_organs(brain_tx: Sender<BrainMessage>) -> Vec<OrganSocket> {
let mut sockets = Vec::new();
let mut ids = 1..;
@ -34,9 +31,7 @@ impl OrganFactory {
fn spawn_heart(id: u32, feedback_to_brain_tx: Sender<BrainMessage>) -> OrganSocket {
let initial_life_state = LifeState::Dead;
let (brain_command_to_organ_tx, brain_command_to_organ_rx) =
Self::get_organ_channels();
let (brain_command_to_organ_tx, brain_command_to_organ_rx) = Self::get_organ_channels();
let socket = OrganSocket::new(id, initial_life_state, brain_command_to_organ_tx);
thread::spawn(move || {