Skip to content

Commit 5075749

Browse files
committed
InnerDict -> DictInner for naming convention
1 parent aaf95bb commit 5075749

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

vm/src/dictdatatype.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ type HashIndex = hash::PyHash;
2020
type EntryIndex = usize;
2121

2222
pub struct Dict<T = PyObjectRef> {
23-
inner: PyRwLock<InnerDict<T>>,
23+
inner: PyRwLock<DictInner<T>>,
2424
}
2525

26-
struct InnerDict<T> {
26+
struct DictInner<T> {
2727
size: usize,
2828
indices: HashMap<HashIndex, EntryIndex>,
2929
entries: Vec<Option<DictEntry<T>>>,
3030
}
3131

32-
impl<T: Clone> Clone for InnerDict<T> {
32+
impl<T: Clone> Clone for DictInner<T> {
3333
fn clone(&self) -> Self {
34-
InnerDict {
34+
DictInner {
3535
size: self.size,
3636
indices: self.indices.clone(),
3737
entries: self.entries.clone(),
@@ -50,7 +50,7 @@ impl<T: Clone> Clone for Dict<T> {
5050
impl<T> Default for Dict<T> {
5151
fn default() -> Self {
5252
Dict {
53-
inner: PyRwLock::new(InnerDict {
53+
inner: PyRwLock::new(DictInner {
5454
size: 0,
5555
indices: HashMap::new(),
5656
entries: Vec::new(),
@@ -82,11 +82,11 @@ pub struct DictSize {
8282
}
8383

8484
impl<T: Clone> Dict<T> {
85-
fn borrow_value(&self) -> PyRwLockReadGuard<'_, InnerDict<T>> {
85+
fn borrow_value(&self) -> PyRwLockReadGuard<'_, DictInner<T>> {
8686
self.inner.read()
8787
}
8888

89-
fn borrow_value_mut(&self) -> PyRwLockWriteGuard<'_, InnerDict<T>> {
89+
fn borrow_value_mut(&self) -> PyRwLockWriteGuard<'_, DictInner<T>> {
9090
self.inner.write()
9191
}
9292

0 commit comments

Comments
 (0)