This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import asyncio | |
import json | |
import marshal | |
import pathlib | |
import sys | |
import yapapi | |
from yapapi.log import enable_default_logger, log_summary, log_event_repr # noqa | |
from yapapi.runner import Engine, Task, vm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::fs; | |
use std::io::{self, IoSliceMut, Read, Write, Seek, SeekFrom}; | |
fn main() -> io::Result<()> { | |
let mut f = fs::OpenOptions::new() | |
.read(true) | |
.write(true) | |
.create(true) | |
.truncate(true) | |
.open("test.txt")?; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(module | |
(type (;0;) (func (param i32))) | |
(type (;1;) (func)) | |
(import "env" "frobinate" (func $frobinate (type 0))) | |
(import "env" "glob" (global (;0;) i32)) | |
(export "foo" (func $foo)) | |
(func $foo (type 1) | |
global.get 0 | |
call $frobinate | |
return)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::vec::IntoIter; | |
pub enum VecOrStr { | |
Vec { inner: Vec<String> }, | |
Str { inner: String }, | |
} | |
impl VecOrStr { | |
pub fn from_iter<S: AsRef<str>>(iter: impl IntoIterator<Item = S>) -> Self { | |
let inner = iter.into_iter().map(|x| x.as_ref().to_owned()).collect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling nalgebra v0.18.2 (/home/kubkon/dev/nalgebra) | |
warning: lint `incoherent_fundamental_impls` has been removed: `converted into hard error, see https://github.com/rust-lang/rust/issues/46205` | |
--> src/lib.rs:85:9 | |
| | |
85 | #![warn(incoherent_fundamental_impls)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: `#[warn(renamed_and_removed_lints)]` on by default | |
warning: lint `incoherent_fundamental_impls` has been removed: `converted into hard error, see https://github.com/rust-lang/rust/issues/46205` |
NewerOlder