Remove path argument from mount function

This commit is contained in:
pjht 2024-06-18 16:43:19 -05:00
parent 6873b5537b
commit 5284fcd6d1
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -10,7 +10,7 @@ struct Serv {
}
impl fs_rpc::Server for Serv {
fn mount(&self, dev: &std::path::Path, _path: &std::path::Path) -> Result<u64, ()> {
fn mount(&self, dev: &std::path::Path) -> Result<u64, ()> {
let archive = File::open(dev).map_err(|_| ())?;
let mut archive = Archive::new(archive);
let entries = archive.entries_with_seek().unwrap().map(|entry| {