diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/content.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/model/content.rs b/src/model/content.rs index 11ad635f..bd24829d 100644 --- a/src/model/content.rs +++ b/src/model/content.rs @@ -40,12 +40,7 @@ enum Modifier { impl Content { /// Create a content of the given node kind. - pub fn new<T: Node>() -> Self { - Self::new_of(T::id()) - } - - /// Create a content of the given node kind. - pub fn new_of(id: NodeId) -> Self { + pub fn new(id: NodeId) -> Self { Self { id, span: Span::detached(), |
