Fix some dependencies (#7794)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-03-10 17:09:37 -04:00
committed by GitHub
parent b33adc8a1b
commit ac73a57ab0
3 changed files with 21 additions and 34 deletions
+3 -3
View File
@@ -158,12 +158,12 @@ pub trait ConfigValue {
macro_rules! config_value {
($key:ident, $type:ty) => {
impl Config {
paste::paste! {
pastey::paste! {
pub fn [<get_ $key:lower>](&self) -> Result<$type, ConfigError> {
self.get_param(stringify!($key))
}
}
paste::paste! {
pastey::paste! {
pub fn [<set_ $key:lower>](&self, v: impl Into<$type>) -> Result<(), ConfigError> {
self.set_param(stringify!($key), &v.into())
}
@@ -172,7 +172,7 @@ macro_rules! config_value {
};
($key:ident, $inner:ty, $default:expr) => {
paste::paste! {
pastey::paste! {
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(transparent)]
pub struct [<$key:camel>]($inner);