Make some of ruff_python_semantic pub(crate) (#5093)

This commit is contained in:
Charlie Marsh 2023-06-14 13:49:37 -04:00 committed by GitHub
parent 916f0889f8
commit c992cfa76e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 22 deletions

View file

@ -49,11 +49,11 @@ impl<'a> Globals<'a> {
builder.finish()
}
pub fn get(&self, name: &str) -> Option<&TextRange> {
pub(crate) fn get(&self, name: &str) -> Option<&TextRange> {
self.0.get(name)
}
pub fn iter(&self) -> impl Iterator<Item = (&&'a str, &TextRange)> + '_ {
pub(crate) fn iter(&self) -> impl Iterator<Item = (&&'a str, &TextRange)> + '_ {
self.0.iter()
}
}