Skip to content

Commit

Permalink
make Theme::load_toml public (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olie authored Jun 19, 2024
1 parent 8918201 commit 52d3dbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cursive-core/src/theme/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ impl Theme {

#[cfg(feature = "toml")]
#[cfg_attr(feature = "doc-cfg", doc(cfg(feature = "toml")))]
fn load_toml(&mut self, table: &toml::value::Table) {
/// Load values from an already parsed toml [`Table`], overwriting previous values.
///
/// [`Table`]: https://docs.rs/toml/latest/toml/type.Table.html
pub fn load_toml(&mut self, table: &toml::value::Table) {
if let Some(&toml::Value::Boolean(shadow)) = table.get("shadow") {
self.shadow = shadow;
}
Expand Down

0 comments on commit 52d3dbd

Please sign in to comment.