Skip to content

Commit

Permalink
fix mistakes in fs PAL
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Jan 1, 2025
1 parent 7d0beb5 commit 835338e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sys/pal/vexos/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ impl File {
// we have to calculate the offset from the end of the file ourselves.
map_fresult(vex_sdk::vexFileSeek(
self.fd.0,
try_convert_offset(self.file_attr().size + offset)?,
try_convert_offset(self.file_attr()?.size as i64 + offset)?,
SEEK_SET,
))?
}
Expand Down Expand Up @@ -412,7 +412,7 @@ impl File {

impl DirBuilder {
pub fn new() -> DirBuilder {
DirBuilder {}
DirBuilder(())
}

pub fn mkdir(&self, _p: &Path) -> io::Result<()> {
Expand Down

0 comments on commit 835338e

Please sign in to comment.