Skip to content

Instantly share code, notes, and snippets.

View yaahc's full-sized avatar
💭
🦊

Jane Losare-Lusby yaahc

💭
🦊
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jrlusby on github.
  • I am yaah (https://keybase.io/yaah) on keybase.
  • I have a public key ASClIOUdq1vNm7CUafVI82T9GOkqiMjYLxJodV5odBzmPgo

To claim this, I am signing this object:

@yaahc
yaahc / gist:4bcdf90aa74cbae125cb618906a5b93f
Created March 15, 2019 01:10
clippy vs clippy-preview
master ✗ $ cargo clippy
Checking clippytest v0.1.0 (/home/jlusby/git/rust/clippytest)
error: this `if` has identical blocks
--> src/main.rs:3:12
|
3 | } else {
| ____________^
4 | | }
| |_____^
|
@yaahc
yaahc / gist:7ef4b3d018c63d19f47ede00889e68e8
Created March 15, 2019 04:11
is this running the correct binary?
[2019-03-15T04:08:59Z DEBUG cargo] exit_with_error; err=CliError { error: Some(ProcessError { desc: "process didn\'t exit successfully: `clippy-driver rustc --edition=2018 --crate-name clippytest src/main.rs --color always --crate-type bin --emit=dep-info,metadata -C debuginfo=2 -C metadata=f7a52620a1cf4b3b -C extra-filename=-f7a52620a1cf4b3b --out-dir /home/jlusby/git/rust/clippytest/target/debug/deps -C incremental=/home/jlusby/git/rust/clippytest/target/debug/incremental -L dependency=/home/jlusby/git/rust/clippytest/target/debug/deps` (exit code: 1)", exit: Some(ExitStatus(ExitStatus(256))), output: None }
diff --git a/tokio-trace-env-logger/examples/hyper-echo.rs b/tokio-trace-env-logger/examples/hyper-echo.rs
index db8bd1b..4d753a0 100644
--- a/tokio-trace-env-logger/examples/hyper-echo.rs
+++ b/tokio-trace-env-logger/examples/hyper-echo.rs
@@ -124,7 +124,7 @@ fn main() {
tokio_trace::subscriber::with_default(subscriber, || {
let addr: ::std::net::SocketAddr = ([127, 0, 0, 1], 3000).into();
- let mut server_span = span!(Level::TRACE, "server", local = &field::debug(addr));
+ let server_span = span!(Level::TRACE, "server", local = &field::debug(addr));
layout title categories
post
Lifetime definitions
rust rustlang lifetime borrow reference generics

Confusing terms

My problem with understanding lifetime heavy code is that I find all the terms involved confusable. This post is my attempt to record clear distinctions

//! Struct for merging multiple sorted channels into a single iterator
use crossbeam::channel::Receiver;
use std::cmp::Ordering;
use std::fmt::Debug;
use tracing_proc_macros::trace as instrument;
/// Representation of a merged set of channels as an iterator
///
/// Depends upon the assumption that all data in chans is already sorted.
@yaahc
yaahc / cfp.md
Created July 16, 2019 00:24
colorado gold rust cfp draft

Insert catchy title for the contribution tour

Abstract

The story so far of my experience joining the rust FOSS community. Starting from learning about the community and its values, through my initial efforts to contribute to various projects, and finishing in my current more refined views towards selecting open source work and how to approach it constructively.

Details

# Rustaceans! We Can Help!
## Abstract
Are you a new rustacean trying to take your first steps into rust's open source
community? Are you trying to meet people in the rust community but don't know
where to start? Are you a maintainer interested in attracting new contributors?
Then have I got the talk for you! Together we will explore some approaches to
finding issues to work on, finding new projects, structuring your projects to
help new contributors, and meeting other rust developers to become a happy and
@yaahc
yaahc / todo.md
Last active August 8, 2019 22:26
My todo list of PR ideas related to rustlang