This commit is contained in:
gallant 2023-07-27 15:00:46 -05:00
parent 3273af8ea7
commit 80124967ab
5 changed files with 22 additions and 18 deletions

View file

@ -9,7 +9,11 @@ lazy_static! {
};
}
use std::{io::{BufWriter, Write}, fs::File, sync::Mutex};
use std::{
fs::File,
io::{BufWriter, Write},
sync::Mutex,
};
pub fn log(entry: &str) {
let mut log = LOG_FILE.lock().unwrap();

View file

@ -1 +1 @@
pub mod logger;
pub mod logger;

View file

@ -1,12 +1,14 @@
use crate::state::*;
use crate::state::Waycrab;
use smithay::backend::input::{
InputBackend
*
};
impl InputBackend for Waycrab{}
use std::error::Error;
impl InputBackend for Waycrab{
fn dispatch_new_events<F>(
&mut self,
callback: F) -> Result<(),InputBackend::EventError>{
}
callback: F) -> Result<(),Self::EventError>{
Ok(())
}
}

View file

@ -1,6 +1,6 @@
mod backend;
mod state;
mod input;
fn main() {
println!("Hello, world!");

View file

@ -1,14 +1,12 @@
#[derive(Debug)]
struct Waycrab {
uptime: std::time::Instant
pub struct Waycrab {
uptime: std::time::Instant,
}
impl Waycrab{
pub fn new() -> Self
{
impl Waycrab {
pub fn new() -> Self {
Waycrab {
uptime: std::time::Instant::now()
}
uptime: std::time::Instant::now(),
}
}
}