roezio: Switch to edition 2021

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Emmanuel Gil Peyrot 2022-03-23 13:25:42 +01:00 committed by Maxime “pep” Buquet
parent 80553747c2
commit 6900fbfd9c
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
3 changed files with 5 additions and 9 deletions

View file

@ -1,6 +1,7 @@
[package]
name = "poezio"
version = "0.1.0"
edition = "2021"
authors = [
"Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>",
"Maxime “pep” Buquet <pep@bouah.net>",

View file

@ -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},

View file

@ -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 {