We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0b0879 commit 08ace18Copy full SHA for 08ace18
library/std/src/sys/pal/vexos/fs.rs
@@ -370,7 +370,7 @@ impl File {
370
// we have to calculate the offset from the end of the file ourselves.
371
map_fresult(vex_sdk::vexFileSeek(
372
self.fd.0,
373
- try_convert_offset(self.file_attr().size + offset)?,
+ try_convert_offset(self.file_attr()?.size as i64 + offset)?,
374
SEEK_SET,
375
))?
376
}
@@ -412,7 +412,7 @@ impl File {
412
413
impl DirBuilder {
414
pub fn new() -> DirBuilder {
415
- DirBuilder {}
+ DirBuilder(())
416
417
418
pub fn mkdir(&self, _p: &Path) -> io::Result<()> {
0 commit comments