Skip to content

Commit 08ace18

Browse files
max-niedermanTropix126
authored andcommitted
fix mistakes in fs PAL
1 parent c0b0879 commit 08ace18

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/sys/pal/vexos

1 file changed

+2
-2
lines changed

library/std/src/sys/pal/vexos/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl File {
370370
// we have to calculate the offset from the end of the file ourselves.
371371
map_fresult(vex_sdk::vexFileSeek(
372372
self.fd.0,
373-
try_convert_offset(self.file_attr().size + offset)?,
373+
try_convert_offset(self.file_attr()?.size as i64 + offset)?,
374374
SEEK_SET,
375375
))?
376376
}
@@ -412,7 +412,7 @@ impl File {
412412

413413
impl DirBuilder {
414414
pub fn new() -> DirBuilder {
415-
DirBuilder {}
415+
DirBuilder(())
416416
}
417417

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

0 commit comments

Comments
 (0)