diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-02-03 10:37:50 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-02-03 10:37:50 +0100 |
| commit | 40ea35cbe7482ce04096c4d63a848c8601cc1848 (patch) | |
| tree | 080a5727ba552ee4b2bf750208e5c243c1e195ef /src/syntax/mod.rs | |
| parent | 20fb4e7c379b79b84d9884d5f2c89d781c5793e2 (diff) | |
Upgrade to new toddle interface 🐳
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 4430f6e8..9d83e546 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -23,7 +23,10 @@ pub_use_mod!(tokens); pub trait Model: Debug + ModelBounds { /// Layout the model into a sequence of commands processed by a /// [`ModelLayouter`](crate::layout::ModelLayouter). - async fn layout<'a>(&'a self, ctx: LayoutContext<'_, '_>) -> Layouted<Commands<'a>>; + async fn layout<'a>( + &'a self, + ctx: LayoutContext<'_>, + ) -> Layouted<Commands<'a>>; } /// A tree representation of source code. @@ -47,7 +50,10 @@ impl SyntaxModel { #[async_trait(?Send)] impl Model for SyntaxModel { - async fn layout<'a>(&'a self, _: LayoutContext<'_, '_>) -> Layouted<Commands<'a>> { + async fn layout<'a>( + &'a self, + _: LayoutContext<'_>, + ) -> Layouted<Commands<'a>> { Layouted { output: vec![Command::LayoutSyntaxModel(self)], errors: vec![], |
