mirror of
https://github.com/qwjyh/xdbm
synced 2025-07-07 07:09:19 +09:00
fix: storage bind (add writing and commiting)
This commit is contained in:
parent
d7e7665739
commit
78b2d956a7
2 changed files with 77 additions and 64 deletions
|
@ -60,11 +60,10 @@ impl PhysicalDrivePartition {
|
|||
let aliases = &mut self.system_names;
|
||||
trace!("aliases: {:?}", aliases);
|
||||
match aliases.insert(device.name(), alias) {
|
||||
Some(v) => trace!("old val is: {}", v),
|
||||
None => trace!("inserted new val"),
|
||||
Some(v) => println!("Value updated. old val is: {}", v),
|
||||
None => println!("inserted new val"),
|
||||
};
|
||||
trace!("aliases: {:?}", aliases);
|
||||
// self.system_names = aliases;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +72,6 @@ impl StorageExt for PhysicalDrivePartition {
|
|||
fn name(&self) -> &String {
|
||||
&self.name
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl fmt::Display for PhysicalDrivePartition {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue