Change model: &SemanticModel to semantic: &SemanticModel (#6406)

Use the same naming conventions everywhere. See:
https://github.com/astral-sh/ruff/pull/6314/files#r1284457874.
This commit is contained in:
Charlie Marsh 2023-08-07 16:32:55 -04:00 committed by GitHub
parent 404e334fec
commit 3d06fe743d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 42 additions and 41 deletions

View file

@ -1113,7 +1113,7 @@ impl<'a> SemanticModel<'a> {
exceptions
}
/// Generate a [`Snapshot`] of the current model.
/// Generate a [`Snapshot`] of the current semantic model.
pub fn snapshot(&self) -> Snapshot {
Snapshot {
scope_id: self.scope_id,
@ -1124,7 +1124,7 @@ impl<'a> SemanticModel<'a> {
}
}
/// Restore the model to the given [`Snapshot`].
/// Restore the semantic model to the given [`Snapshot`].
pub fn restore(&mut self, snapshot: Snapshot) {
let Snapshot {
scope_id,