From 8bae1c766859ba585768a4581fecfcbcea0c3330 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 31 Oct 2024 22:34:35 +0100 Subject: [PATCH] formatted --- macros/src/lib.rs | 1 - src/constants.rs | 1 - src/level_widget.rs | 6 +++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index cf1c841..0ecdc31 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -3,7 +3,6 @@ extern crate proc_macro; use proc_macro::TokenStream; use quote::quote; - #[proc_macro_derive(CreateMonsters)] pub fn create_monsters(input: TokenStream) -> TokenStream { let input = syn::parse_macro_input!(input as syn::File); diff --git a/src/constants.rs b/src/constants.rs index 738ad67..e6233d0 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -2,7 +2,6 @@ use std::{collections::HashMap, ops::RangeInclusive}; use crate::{monster::MonsterTypes, room::RoomType}; - /// the number of rooms in vertical direction pub const ROOMS_HORIZONTAL: usize = 8; /// the number of rooms in horizontal direction diff --git a/src/level_widget.rs b/src/level_widget.rs index 1bf97c4..981c835 100644 --- a/src/level_widget.rs +++ b/src/level_widget.rs @@ -17,7 +17,11 @@ impl LevelWidget { buf[(x, y)].set_symbol(symbol).set_bg(bg).set_fg(fg); } fn set_bold_cell(&self, buf: &mut Buffer, x: u16, y: u16, symbol: &str, fg: Color, bg: Color) { - buf[(x, y)].set_symbol(symbol).set_bg(bg).set_fg(fg).set_style(Style::new().add_modifier(Modifier::BOLD)); + buf[(x, y)] + .set_symbol(symbol) + .set_bg(bg) + .set_fg(fg) + .set_style(Style::new().add_modifier(Modifier::BOLD)); } }