Skip to content

Commit

Permalink
Use a named type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 12, 2024
1 parent c3583b0 commit 4e28e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_db/src/system/memory_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ impl MemoryFileSystem {
pub fn read_directory(
&self,
path: impl AsRef<SystemPath>,
) -> Result<impl Iterator<Item = Result<DirectoryEntry>> + '_> {
) -> Result<std::vec::IntoIter<Result<DirectoryEntry>>> {
let by_path = self.inner.by_path.read().unwrap();
let normalized = self.normalize_path(path.as_ref());
let entry = by_path.get(&normalized).ok_or_else(not_found)?;
Expand Down

0 comments on commit 4e28e36

Please sign in to comment.