This file contains hidden or 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
RUST_BACKTRACE=1 cargo test | |
Compiling deltachat v1.33.0 (/Users/dignifiedquire/opensource/deltachat/deltachat-core-rust) | |
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds | |
--> src/sql/mod.rs:135:10 | |
| | |
135 | ) -> Result<T> | |
| ^^^^^^^^^ | |
| | |
note: hidden type `impl core::future::future::Future` captures the scope of call-site for function at 138:5 | |
--> src/sql/mod.rs:138:5 |
This file contains hidden or 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
struct Parser { | |
trailers: Option<Receiver<(String, String)>>, | |
} | |
impl Parser { | |
pub fn new() -> Self { | |
Self { trailers: None } | |
} | |
pub fn parse<'a, T: async_std::io::Read + Unpin + Send + 'static>( |
This file contains hidden or 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 async_std::task::Poll; | |
use byte_pool::{Block, BytePool}; | |
use byteorder::{BigEndian, ByteOrder}; | |
use jetscii::bytes; | |
use std::io::{Cursor, Result}; | |
use std::pin::Pin; | |
use std::task::Context; | |
use subslice::SubsliceExt; | |
fn main() { |
This file contains hidden or 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 byte_pool::{Block, BytePool}; | |
use byteorder::{BigEndian, ByteOrder}; | |
use std::io::{Cursor, Result}; | |
fn main() { | |
let pool = BytePool::<Vec<u8>>::new(); | |
let source = vec![1; 1024 * 1024]; | |
let incoming_bytes = Cursor::new(&source); | |
let mut dest = Vec::new(); |
This file contains hidden or 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 anyhow::Result; | |
use async_std::prelude::*; | |
use async_std::sync::Arc; | |
use async_std::sync::{channel, Receiver, Sender}; | |
use async_std::task; | |
use log::info; | |
use std::time::Duration; | |
fn setup_logger() { | |
pretty_env_logger::init(); |
This file contains hidden or 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
$ lldb -p 64608 | |
(lldb) process attach --pid 64608 | |
Process 64608 stopped | |
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP | |
frame #0: 0x00007fff793bb86a libsystem_kernel.dylib`__psynch_cvwait + 10 | |
libsystem_kernel.dylib`__psynch_cvwait: | |
-> 0x7fff793bb86a <+10>: jae 0x7fff793bb874 ; <+20> | |
0x7fff793bb86c <+12>: movq %rax, %rdi | |
0x7fff793bb86f <+15>: jmp 0x7fff793b8457 ; cerror_nocancel | |
0x7fff793bb874 <+20>: retq |
This file contains hidden or 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 async_imap::{connect, error::Result}; | |
use async_std::prelude::*; | |
use async_std::task; | |
use async_tls::TlsConnector; | |
use std::time::Duration; | |
fn main() -> Result<()> { | |
task::block_on(async { | |
let server = "imap.server.com"; |
This file contains hidden or 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
async fn compare_path(&self, path_files: Vec<File>) -> Vec<File> { | |
let changed_files = Vec::with_capacity(path_files.len()); | |
let changed_files = Arc::new(Mutex::new(changed_files)); | |
let mut handles = Vec::with_capacity(path_files.len()); | |
// Check all files | |
for file in path_files { | |
let changed_files = Arc::clone(&changed_files); |
This file contains hidden or 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
MIT: tokio-sync, tokio-timer, tokio-executor, kernel32-sys, string, tokio, winutil, generic-array, tokio-tcp, argon2rs, try-lock, rustyline, redox_syscall, slab, phf_shared, tokio-threadpool, h2, http-body, try_from, unsafe-any, openssl-sys, darling_macro, libsqlite3-sys, memoffset, rusqlite, circular, nix, strum_macros, lettre, synstructure, strsim, tokio-current-thread, darling, tokio-io, darling_core, miniz_oxide_c_api, ws2_32-sys, schannel, nom, winapi, bytes, phf, r2d2_sqlite, want, void, tokio-buf, winreg, unicase, hostname, owning_ref, hyper, matches, mime_guess, redox_users, scoped_threadpool, strum, tokio-reactor, miniz_oxide, enum_primitive, mio | |
BSD-2-Clause: cloudabi, mach | |
BSD-3-Clause: ed25519-dalek, x25519-dalek, fuchsia-zircon, fuchsia-zircon-sys, subtle, curve25519-dalek | |
Apache-2.0: openssl | |
MPL-2.0: ascii_utils, fast_chemail | |
BSD-3-Clause AND Zlib: adler32 | |
CC0-1.0: constant_time_eq, keccak | |
ISC: rdrand | |
MPL: deltachat | |
License specified in file (/Users/dignifiedquire/.cargo/registry/src/github.com- |
This file contains hidden or 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
$ cargo fix --edition | |
Checking pgp v0.1.0 (/Users/dignifiedquire/opensource/rpgp) | |
warning: failed to automatically apply fixes suggested by rustc to crate `pgp` | |
after fixes were automatically applied the compiler reported errors within these files: | |
* src/composed/shared.rs | |
* src/composed/signed_key/key_parser_macros.rs |
NewerOlder