Unverified Commit a97c272b authored by zyno42's avatar zyno42
Browse files

Fix `libtapasco` for `config` crate version bump to 0.12.0

The `get_str` method on `Config` struct was renamed to `get_string`.

Aside, the minimum Rust compiler version supported is now 1.49.0.
parent 34aab179
......@@ -275,7 +275,7 @@ impl Device {
.open(format!(
"{}{:02}",
settings
.get_str("tlkm.device_driver_file")
.get_string("tlkm.device_driver_file")
.context(ConfigSnafu)?,
id
))
......
......@@ -370,7 +370,7 @@ impl TLKM {
let path = PathBuf::from(
settings
.get_str("tlkm.main_driver_file")
.get_string("tlkm.main_driver_file")
.context(ConfigSnafu)?,
);
let file = OpenOptions::new()
......
......@@ -166,7 +166,7 @@ pub const fn to_page_boundary(x: u64) -> u64 {
// get VFIO group number of tapasco platform device from sysfs
fn get_vfio_group(settings: &Arc<Config>) -> Result<i32, Error> {
let dev_path = settings
.get_str("tlkm.vfio_device")
.get_string("tlkm.vfio_device")
.context(ConfigSnafu)?;
let iommu_group_path = read_link(&dev_path)
.context(VfioNoGroupSnafu {file: &dev_path} )?;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment