Ivan Tham

Results 525 comments of Ivan Tham

Just do the same thing twice. Code below not tested but shows a rough idea. ```rust use serde::Deserialize; #[derive(Deserialize, Debug)] struct User { fingerprint: String, location: String, } fn main()...

Wait, I meant an error (now I am wondering if that issue happens before I pad the extra data with 0 to prevent invalid unicode characters) but yes it may...

Option A is implemented in rustfmt https://github.com/rust-lang/rustfmt/pull/4226 see https://github.com/rust-lang/rustfmt/issues/4065 for the tracking issue.

For example, ```rust use include_dir::{include_dir, Dir}; static PROJECT_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR"); // of course, you can retrieve a file by its full path let lib_rs = PROJECT_DIR.get_file("src/lib.rs"); // no unwrap...

> This sort of compile-time validation means we can't have things like compression because they will generally require allocations. There's also no point decompressing something at compile time because that'll...

This is slowing pendulum import time. Can check with ```sh pip install tuna python -X importtime -c 'import pendulum' 2> import.log tuna import.log ``` ![image](https://github.com/user-attachments/assets/86c77371-5484-4d67-b7b9-2ddd84aecd66)

It would be good to utilize some rust functions rather than plain loops, like [`find`](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html#method.find).

Nice, that looks better. By the way, you could close this issue.

https://github.com/helix-editor/helix/pull/464/checks?check_run_id=3093468552 We also get that on iterator, I think a workaround is remove signal-hook-tokio for windows.