Remove dependency on paste

This commit is contained in:
pjht 2022-11-12 15:49:23 -06:00
parent 1e021632b1
commit e823f863c9
3 changed files with 1 additions and 11 deletions

7
Cargo.lock generated
View File

@ -445,7 +445,6 @@ dependencies = [
"itertools",
"nullable-result",
"parse_int",
"paste",
"reedline-repl-rs",
"serde",
"thiserror",
@ -555,12 +554,6 @@ dependencies = [
"num-traits",
]
[[package]]
name = "paste"
version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1"
[[package]]
name = "proc-macro2"
version = "1.0.47"

View File

@ -16,7 +16,6 @@ inventory = "0.3.1"
itertools = "0.10.5"
nullable-result = { version = "0.7.0", features=["try_trait"] }
parse_int = "0.6.0"
paste = "1.0.9"
reedline-repl-rs = { path = "reedline-repl-rs" }
serde = { version = "1.0.144", features = ["derive"] }
thiserror = "1.0.37"

View File

@ -144,8 +144,6 @@ pub const fn u16_get_be_byte(val: u16, idx: u8) -> u8 {
#[macro_export]
macro_rules! register {
($typ: ty, $name: literal) => {
paste::paste! {
inventory::submit!($crate::card::Type::new::<$typ>($name));
}
inventory::submit!($crate::card::Type::new::<$typ>($name));
};
}