Skip to content

Commit

Permalink
Refactor style files
Browse files Browse the repository at this point in the history
  • Loading branch information
syrtcevvi committed Sep 7, 2024
1 parent 9daab71 commit 535eeb6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion crates/teloxide-inline-widgets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@ derive_more = { version = "0.99.18", default-features = false, features = ["disp
serde = { version = "1.0.204", features = ["derive"] }
teloxide = { version = "0.12.2", default-features = false }
log = "0.4.22"
chrono = "0.4.38"

[dev-dependencies]
derive_more = "0.99.18"
log = "0.4.22"
pretty_assertions = "1.4.0"
pretty_env_logger = "0.5.0"
rstest = "0.22.0"
teloxide = "0.12.2"
teloxide = { version = "0.12.2", features = ["macros"] }
tokio = { version = "1.39.1", features = ["rt-multi-thread", "macros"] }

[[example]]
Expand Down
13 changes: 3 additions & 10 deletions crates/teloxide-inline-widgets/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
mod calendar_style;
mod checkbox_list_style;
mod common_style;
mod radio_list_style;
mod callback_query_data;
mod size;
mod widget_styles;
mod styles;

pub use self::{
calendar_style::CalendarStyle, checkbox_list_style::CheckboxListStyle,
common_style::CommonStyle, radio_list_style::RadioListStyle, size::Size,
widget_styles::WidgetStyles,
};
pub use self::{callback_query_data::CallbackQueryData, size::Size, styles::*};
10 changes: 10 additions & 0 deletions crates/teloxide-inline-widgets/src/types/styles.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mod calendar_style;
mod checkbox_list_style;
mod common_style;
mod radio_list_style;
mod widget_styles;

pub use self::{
calendar_style::*, checkbox_list_style::*, common_style::*, radio_list_style::*,
widget_styles::*,
};

0 comments on commit 535eeb6

Please sign in to comment.