moved the Rc<RefCell<>> back into FatFs
This commit is contained in:
parent
8b55d8d13c
commit
f708ab0b50
5 changed files with 15 additions and 4 deletions
|
|
@ -26,7 +26,10 @@ pub struct FatFuse {
|
|||
}
|
||||
|
||||
impl FatFuse {
|
||||
pub fn new(data: Rc<RefCell<dyn SliceLike>>) -> anyhow::Result<FatFuse> {
|
||||
pub fn new<S>(data: S) -> anyhow::Result<FatFuse>
|
||||
where
|
||||
S: SliceLike + Send + 'static,
|
||||
{
|
||||
let uid = unsafe { libc::getuid() };
|
||||
let gid = unsafe { libc::getgid() };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue