Skip to content

Commit

Permalink
Allow absolute path joints
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Apr 5, 2024
1 parent 0f913b7 commit 1b4eb27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rfs/rfstype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ pub struct RfsType {
}

impl RfsType {
#[allow(clippy::join_absolute_paths)]
/// Create an instance of the RfsType
pub fn new(p: PathBuf) -> Self {
RfsType { rfs_path: p.join("/etc/os-release"), rfs_os_id: "".to_string() }.parse_osrls()
Expand Down

0 comments on commit 1b4eb27

Please sign in to comment.