fmt & clippy
This commit is contained in:
parent
e032cfb918
commit
d998e2f290
8 changed files with 228 additions and 161 deletions
src
13
src/main.rs
13
src/main.rs
|
@ -2,12 +2,12 @@
|
|||
// pub mod modules;
|
||||
//use myLib;
|
||||
//pub mod lib;
|
||||
use std::process::Output;
|
||||
// use std::process::Output;
|
||||
|
||||
// use crate::core::botinstance::ArcBox;
|
||||
use botLib::core::botinstance::ArcBox;
|
||||
// use bot_lib::core::botinstance::ArcBox;
|
||||
|
||||
use botLib::core::botinstance::{self, BotInstance};
|
||||
use bot_lib::core::botinstance::{self, BotInstance};
|
||||
// use core::botinstance::{self,BotInstance};
|
||||
|
||||
use casual_logger::Extension;
|
||||
|
@ -33,10 +33,11 @@ pub async fn main() {
|
|||
let a = a.read().await;
|
||||
// let a = *a;
|
||||
|
||||
for (_, acts) in &*a {
|
||||
// for (_, acts) in &*a {
|
||||
for acts in (*a).values() {
|
||||
for act in acts {
|
||||
match act {
|
||||
botLib::core::botmodules::BotAction::C(b) => {
|
||||
bot_lib::core::botmodules::BotAction::C(b) => {
|
||||
// println!("bot actiions: {}",b.command)
|
||||
// Log::info(&format!("bot actions: {}",b.command));
|
||||
botinstance::botlog::info(
|
||||
|
@ -45,7 +46,7 @@ pub async fn main() {
|
|||
None,
|
||||
);
|
||||
}
|
||||
botLib::core::botmodules::BotAction::L(l) => {
|
||||
bot_lib::core::botmodules::BotAction::L(l) => {
|
||||
// println!("bot actiions: {}",l.name)
|
||||
// Log::info(&format!("bot actions: {}",l.name));
|
||||
botinstance::botlog::info(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue