diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-17 14:39:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-17 16:04:12 +0100 |
| commit | c47e4cb4969836e7fb8955361728105555b6d722 (patch) | |
| tree | 08b613938b7bc7b82ae358aa8f117af11c1db6a8 /src/model | |
| parent | 312197b276748e1a17258ad21837850f582a467c (diff) | |
State
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(), |
