conlang: More clippy
This commit is contained in:
@@ -159,7 +159,7 @@ impl Environment {
|
||||
/// Enters a nested scope, returning a [`Frame`] stack-guard.
|
||||
///
|
||||
/// [`Frame`] implements Deref/DerefMut for [`Environment`].
|
||||
pub fn frame(&mut self, name: &'static str) -> Frame {
|
||||
pub fn frame(&mut self, name: &'static str) -> Frame<'_> {
|
||||
Frame::new(self, name)
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ impl Function {
|
||||
pub fn decl(&self) -> &FnDecl {
|
||||
&self.decl
|
||||
}
|
||||
pub fn upvars(&self) -> Ref<Upvars> {
|
||||
pub fn upvars(&self) -> Ref<'_, Upvars> {
|
||||
self.upvars.borrow()
|
||||
}
|
||||
pub fn lift_upvars(&self, env: &Environment) {
|
||||
|
||||
@@ -328,7 +328,7 @@ pub mod collector {
|
||||
self.env.modules().get(self.module)
|
||||
}
|
||||
|
||||
pub fn as_node_mut(&mut self) -> ModuleNodeMut {
|
||||
pub fn as_node_mut(&mut self) -> ModuleNodeMut<'_> {
|
||||
self.env.modules_mut().get_mut(self.module)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user