CONTRIBUTING: include `super` in import examples

This commit is contained in:
Fintan Halpenny 2026-01-14 15:08:57 +00:00
parent 01df41bf01
commit 3e1a02fdb1
1 changed files with 3 additions and 1 deletions

View File

@ -163,10 +163,12 @@ Imports are organized in groups, from least specific to more specific:
use git_ref_format as format; // Then, external dependencies. use git_ref_format as format; // Then, external dependencies.
use serde_json::Value; use serde_json::Value;
use crate::crypto::PublicKey; // Finally, local crate imports. use crate::crypto::PublicKey; // Then, local crate imports.
use crate::storage::refs::Refs; use crate::storage::refs::Refs;
use crate::storage::RemoteId; use crate::storage::RemoteId;
use super::Oid; // Finally, super imports.
#### Variable naming #### Variable naming
Use short 1-letter names when the variable scope is only a few lines, or the context is Use short 1-letter names when the variable scope is only a few lines, or the context is