summaryrefslogtreecommitdiff
path: root/src/model/content.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/content.rs')
-rw-r--r--src/model/content.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/content.rs b/src/model/content.rs
index 2b9eb182..3e27c02f 100644
--- a/src/model/content.rs
+++ b/src/model/content.rs
@@ -206,7 +206,7 @@ impl Content {
/// Assign a role to this content by adding a style map.
pub fn role(self, role: Role) -> Self {
- self.styled_with_map(StyleMap::with_role(role))
+ self.styled_with_entry(StyleEntry::Role(role))
}
/// Reenable the show rule identified by the selector.