diff --git a/Cargo.toml b/Cargo.toml index b2f76e8..2924b54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "osui-element" -version = "0.1.12" +version = "0.1.13" edition = "2021" description = "The element attribute for defining elements in OSUI" license = "Apache-2.0" diff --git a/lib.rs b/lib.rs index d2e9c9d..3d222c9 100644 --- a/lib.rs +++ b/lib.rs @@ -132,6 +132,10 @@ pub fn element(_args: TokenStream, input: TokenStream) -> TokenStream { fn get_id(&self) -> String { self.id.to_string() } + + fn get_style(&self) -> &Style { + &self.style + } } } };