Skip to content

Instantly share code, notes, and snippets.

View yaahc's full-sized avatar
💭
🦊

Jane Losare-Lusby yaahc

💭
🦊
  • Futurewei Technologies
  • San Francisco
  • X @yaahc_
View GitHub Profile
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));
@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 }
@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 | | }
| |_____^
|

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: