Skip to content

Commit

Permalink
Rename getters into list and list_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Oct 16, 2023
1 parent 311f530 commit 34217a9
Show file tree
Hide file tree
Showing 17 changed files with 95 additions and 95 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ println!("=> disks:");
let mut disks = Disks::new();
// We refresh the disk list.
disks.refresh_list();
for disk in disks.iter() {
for disk in &disks {
println!("{disk:?}");
}

Expand All @@ -90,7 +90,7 @@ let mut components = Components::new();
// We refresh the component list.
components.refresh_list();
println!("=> components:");
for component in components.iter() {
for component in &components {
println!("{component:?}");
}
```
Expand Down
Loading

0 comments on commit 34217a9

Please sign in to comment.