fixed shit for you
dickhead
This commit is contained in:
parent
2e0926ca6a
commit
0d12403a45
2 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
use eframe::egui;
|
use eframe::egui;
|
||||||
use std::{sync::{Arc, Mutex}, thread, time::Duration};
|
use std::{sync::{Arc, Mutex}, thread, time::Duration};
|
||||||
pub mod net;
|
mod net;
|
||||||
|
|
||||||
|
pub use crate::net::networking;
|
||||||
|
|
||||||
fn main() -> Result<(), eframe::Error> {
|
fn main() -> Result<(), eframe::Error> {
|
||||||
let options = eframe::NativeOptions::default();
|
let options = eframe::NativeOptions::default();
|
||||||
|
|
|
@ -6,6 +6,8 @@ use std::sync::mpsc::{channel, Sender};
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
|
||||||
|
|
||||||
|
pub mod networking {
|
||||||
|
|
||||||
pub fn network() -> Sender<Vec<i64>> {
|
pub fn network() -> Sender<Vec<i64>> {
|
||||||
let (tx, rx) = channel();
|
let (tx, rx) = channel();
|
||||||
let tx: Sender<Vec<i64>> = tx.clone();
|
let tx: Sender<Vec<i64>> = tx.clone();
|
||||||
|
@ -72,4 +74,5 @@ pub fn debug(tx: Sender<Vec<i64>>) -> Sender<Vec<i64>> {
|
||||||
tx
|
tx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue