Skip to content

Commit

Permalink
📝 Fix macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Nov 9, 2024
1 parent 21a8259 commit cc8b746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/types/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
use anyhow::{anyhow, Result};
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::sync::{Arc, Mutex};

use yuuka::derive_struct;

use crate::consts::CACHE_DIR;

derive_struct!(
#[serde(rename_all = "kebab-case")]
#[derive(PartialEq, Serialize, Deserialize)]
#[macros_recursive(serde(rename_all = "kebab-case"))]
pub Config {
portal: {
title_suffix: String,
Expand Down
3 changes: 2 additions & 1 deletion packages/types/src/i18n.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ use serde::{Deserialize, Serialize};
use yuuka::derive_struct;

derive_struct!(
#[serde(rename_all = "kebab-case")]
#[derive(Serialize, Deserialize)]
#[macros_recursive(serde(rename_all = "kebab-case"))]
pub Config {
header: {
welcome: String,
Expand Down

0 comments on commit cc8b746

Please sign in to comment.