mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-04 10:13:21 +01:00
chore: Fix warnings for Rust 1.89 (#32378)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
1 parent
4ff41ba62e
commit
72bcb0beb7
32 files changed
+102
-95
No files matched your search
@@ -1126,7 +1126,7 @@ impl<'a> SyntaxMapMatches<'a> {
|
||||
&self.grammars
|
||||
}
|
||||
|
||||
pub fn peek(&self) -> Option<SyntaxMapMatch> {
|
||||
pub fn peek(&self) -> Option<SyntaxMapMatch<'_>> {
|
||||
let layer = self.layers.first()?;
|
||||
|
||||
if !layer.has_next {
|
||||
@@ -1550,7 +1550,7 @@ fn insert_newlines_between_ranges(
|
||||
|
||||
impl OwnedSyntaxLayer {
|
||||
/// Returns the root syntax node for this layer.
|
||||
pub fn node(&self) -> Node {
|
||||
pub fn node(&self) -> Node<'_> {
|
||||
self.tree
|
||||
.root_node_with_offset(self.offset.0, self.offset.1)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user