You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": ".expect(\"fwrite: only supporting u8 pointers\")"
564
-
}
565
-
]
566
-
}
567
-
}
568
-
],
569
-
"body": [
570
-
{
571
-
"text": ".clone()"
572
-
}
573
-
]
574
-
}
575
-
},
576
-
{
577
-
"text": ";\n\n let mut f = "
578
-
},
579
-
{
580
-
"method_call": {
581
-
"receiver": [
582
-
{
583
-
"method_call": {
584
-
"receiver": [
585
-
{
586
-
"text": "(*"
587
-
},
588
-
{
589
-
"method_call": {
590
-
"receiver": [
591
-
{
592
-
"method_call": {
593
-
"receiver": [
594
-
{
595
-
"placeholder": {
596
-
"arg": 3,
597
-
"access": "read"
598
-
}
599
-
}
600
-
],
601
-
"body": [
602
-
{
603
-
"text": ".upgrade()"
604
-
}
605
-
]
606
-
}
607
-
}
608
-
],
609
-
"body": [
610
-
{
611
-
"text": ".deref()"
612
-
}
613
-
]
614
-
}
615
-
},
616
-
{
617
-
"text": ")"
618
-
}
619
-
],
620
-
"body": [
621
-
{
622
-
"text": ".try_clone()"
623
-
}
624
-
]
625
-
}
626
-
}
627
-
],
628
-
"body": [
629
-
{
630
-
"text": ".expect(\"try_clone failed\")"
631
-
}
632
-
]
633
-
}
634
-
},
635
-
{
636
-
"text": ";\n let mut writer = std::io::BufWriter::with_capacity(64 * 1024, f);\n\n let mut written_bytes: usize = 0;\n let mut buffer: [u8; 8192] = [0; 8192];\n\n while written_bytes < total {\n let remaining = total - written_bytes;\n let to_fill = std::cmp::min("
637
-
},
638
-
{
639
-
"method_call": {
640
-
"receiver": [
641
-
{
642
-
"text": "buffer"
643
-
}
644
-
],
645
-
"body": [
646
-
{
647
-
"text": ".len()"
648
-
}
649
-
]
650
-
}
651
-
},
652
-
{
653
-
"text": ", remaining);\n\n for i in 0..to_fill {\n buffer[i] = "
654
-
},
655
-
{
656
-
"method_call": {
657
-
"receiver": [
658
-
{
659
-
"text": "src"
660
-
}
661
-
],
662
-
"body": [
663
-
{
664
-
"text": ".read()"
665
-
}
666
-
]
509
+
"placeholder": {
510
+
"arg": 0,
511
+
"access": "read"
667
512
}
668
513
},
669
514
{
670
-
"text": ";\n src ="
515
+
"text": ","
671
516
},
672
517
{
673
-
"method_call": {
674
-
"receiver": [
675
-
{
676
-
"text": "src"
677
-
}
678
-
],
679
-
"body": [
680
-
{
681
-
"text": ".offset(1)"
682
-
}
683
-
]
518
+
"placeholder": {
519
+
"arg": 1,
520
+
"access": "read"
684
521
}
685
522
},
686
523
{
687
-
"text": ";\n }\n\n let mut off = 0;\n while off < to_fill {\n match std::io::Write::write(&mut writer, &buffer[off..to_fill]) {\n Ok(0) => break,\n Ok(n) => off += n,\n Err(ref e) if"
524
+
"text": ","
688
525
},
689
526
{
690
-
"method_call": {
691
-
"receiver": [
692
-
{
693
-
"text": "e"
694
-
}
695
-
],
696
-
"body": [
697
-
{
698
-
"text": ".kind()"
699
-
}
700
-
]
527
+
"placeholder": {
528
+
"arg": 2,
529
+
"access": "read"
701
530
}
702
531
},
703
532
{
704
-
"text": " == std::io::ErrorKind::Interrupted => continue,\n Err(e) => panic!(\"Unhandled error in fwrite: {e}\"),\n }\n }\n\n if off == 0 {\n break;\n }\n\n written_bytes += off;\n }\n\n"
0 commit comments