oh dear
This commit is contained in:
parent
3273af8ea7
commit
80124967ab
|
@ -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();
|
||||
|
|
|
@ -1 +1 @@
|
|||
pub mod logger;
|
||||
pub mod logger;
|
||||
|
|
14
src/input.rs
14
src/input.rs
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
mod backend;
|
||||
mod state;
|
||||
mod input;
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
|
|
14
src/state.rs
14
src/state.rs
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue