Skip to content

Commit d530b61

Browse files
committed
Migrate template to 2018 edition
1 parent 7fbc538 commit d530b61

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

bindings/neovim_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Auto generated {{date}}
22

3-
use neovim::*;
4-
use rpc::*;
3+
use crate::neovim::*;
4+
use crate::rpc::*;
55

66
{% for etype in exttypes %}
77
#[derive(PartialEq, Clone, Debug)]

bindings/neovim_api_async.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Auto generated {{date}}
22

3-
use neovim::*;
4-
use neovim_api::*;
5-
use rpc::*;
6-
use async::AsyncCall;
3+
use crate::neovim::*;
4+
use crate::neovim_api::*;
5+
use crate::rpc::*;
6+
use crate::r#async::AsyncCall;
77

88
pub trait NeovimApiAsync {
99
{% for f in functions if not f.ext %}
1010
/// since: {{f.since}}
11-
fn {{f.name|replace('nvim_', '')}}_async(&mut self, {{f.argstring}}) -> AsyncCall<{{f.return_type.native_type_ret}}>;
11+
fn {{f.name|replace('nvim_', '')}}_async(&mut self, {{f.argstring}}) -> AsyncCall<'_, {{f.return_type.native_type_ret}}>;
1212
{% endfor %}
1313
}
1414

1515
impl NeovimApiAsync for Neovim {
1616
{% for f in functions if not f.ext %}
17-
fn {{f.name|replace('nvim_', '')}}_async(&mut self, {{f.argstring}}) -> AsyncCall<{{f.return_type.native_type_ret}}> {
17+
fn {{f.name|replace('nvim_', '')}}_async(&mut self, {{f.argstring}}) -> AsyncCall<'_, {{f.return_type.native_type_ret}}> {
1818
self.session.call_async::<{{f.return_type.native_type_ret}}>("{{f.name}}",
1919
call_args![{{ f.parameters|map(attribute = "name")|join(", ") }}])
2020
}

0 commit comments

Comments
 (0)