summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2022-03-23 13:25:42 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-08-21 21:45:04 +0200
commit6900fbfd9c575ffc31727eb0da06443ef9684cd7 (patch)
treeb677551de6d812f8e34af1638b80a1006256744f /src
parent80553747c29deca334aa179af012c9b11b343cb7 (diff)
downloadpoezio-6900fbfd9c575ffc31727eb0da06443ef9684cd7.tar.gz
poezio-6900fbfd9c575ffc31727eb0da06443ef9684cd7.tar.bz2
poezio-6900fbfd9c575ffc31727eb0da06443ef9684cd7.tar.xz
poezio-6900fbfd9c575ffc31727eb0da06443ef9684cd7.zip
roezio: Switch to edition 2021
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs11
-rw-r--r--src/theming.rs2
2 files changed, 4 insertions, 9 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 78ced5a8..5eed1395 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,13 +1,6 @@
-extern crate ncurses;
-extern crate nom;
-extern crate pyo3;
-#[macro_use]
-extern crate lazy_static;
-extern crate enum_set;
+mod theming;
-pub mod theming;
-
-use self::theming::{curses_attr, parse_attrs};
+use crate::theming::{curses_attr, parse_attrs};
use pyo3::{
conversion::{IntoPy, ToPyObject},
diff --git a/src/theming.rs b/src/theming.rs
index 9d6c901e..198546a5 100644
--- a/src/theming.rs
+++ b/src/theming.rs
@@ -13,6 +13,8 @@ use std::collections::HashMap;
use std::mem;
use std::sync::Mutex;
+use lazy_static::lazy_static;
+
#[derive(Debug, PartialEq, Clone, Copy)]
#[repr(u32)]
pub enum Attr {