Jake Goulding

Results 119 issues of Jake Goulding

I'd like to write this code: ```rust let builder = ServiceBuilder::new() .resource(Index::new(config.root.clone())) .resource(Assets::new(config.root)) .resource(SandboxFixme) .resource(Meta::default()) .resource(Gist::new(config.gh_token)); if config.cors_enabled { let cors = CorsBuilder::new() .allow_origins(AllowedOrigins::Any { allow_null: true }) .allow_headers(vec![header::CONTENT_TYPE]) .allow_methods(vec![Method::GET,...

question

``` thread 'tokio-runtime-worker-0' panicked at 'assertion failed: self.remaining_mut() >= src.remaining()', /Users/shep/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.4.8/src/buf/buf_mut.rs:229:9 ``` ``` 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: std::sys_common::backtrace::print at libstd/sys_common/backtrace.rs:71 at libstd/sys_common/backtrace.rs:59 2: std::panicking::default_hook::{{closure}} at libstd/panicking.rs:211 3: std::panicking::default_hook at...

``` thread 'tokio-runtime-worker-2' panicked at 'called `Result::unwrap()` on an `Err` value: ImpossibleSerialization("struct")', libcore/result.rs:945:5 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace at libstd/sys/unix/backtrace/tracing/gcc_s.rs:49 1: std::sys_common::backtrace::print at libstd/sys_common/backtrace.rs:71 at libstd/sys_common/backtrace.rs:59 2: std::panicking::default_hook::{{closure}} at libstd/panicking.rs:211 3:...

``` error[E0428]: the name `ProcMacroHack` is defined multiple times --> src/tower_web_server.rs:29:1 | 29 | / impl_web! { 30 | | impl Assets { 31 | | /// @get("/") 32 |...

## Test case ``` ruby require "active_support/json" require "active_support/core_ext/object/to_json" require "active_support/core_ext/hash/indifferent_access" yaml = "---\nseries:\n- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\n yAxis: 1\n" obj = YAML.load(yaml) JSON.pretty_generate(obj) ``` ## Failure ``` System.java:-2:in `arraycopy': java.lang.ArrayIndexOutOfBoundsException from ByteList.java:544:in...

I took your grid example and added some SASS to get to a normal-ish 12 column layout. All was well and good until I put in a `` block with...

DEPRECATION WARNING: Rails 6.1 will return Content-Type header without modification. If you want just the MIME type, please use `#media_type` instead. ``` gems/remotipart-1.4.4/lib/remotipart/render_overrides.rb:37:in `treat_render_for_remotipart' gems/remotipart-1.4.4/lib/remotipart/render_overrides.rb:23:in `render' ``` https://github.com/JangoSteve/remotipart/blob/v1.4.4/lib/remotipart/render_overrides.rb#L37

Our project has some git dependencies, so I needed to add this mount: ```docker --mount=type=cache,uid=1500,target=/usr/local/cargo/git ``` Thanks for the great resource!

Instead of e.g. ```rust let consumer = timer .timeout_stream(socket, Duration::from_secs(2)) .filter(|&v| v == 2) ``` I think that preserving the chaining of the *future* or *stream* would look better: ```rust...