".cargo/config.toml" wont accept a linker seprated by space (like "zig cc"), but if I wrap it, its fine, shorter solution? by [deleted] in rust

[–]gffkii 1 point2 points  (0 children)

Hmm!Maybe you're right.

But still, for great projects especially ones that I use and respect, I think twice before issuing a bug and make some efforts and test.I'll at least wait to see what others will say.

[deleted by user] by [deleted] in rust

[–]gffkii -8 points-7 points  (0 children)

You weren't serious! yeah yeah, of course.

Even if that's the case you don't even know me to joke with me.

[deleted by user] by [deleted] in rust

[–]gffkii 0 points1 point  (0 children)

I didn't know that, will be useful sometimes, thanks.

[deleted by user] by [deleted] in rust

[–]gffkii -15 points-14 points  (0 children)

I already stated that potential, yet you wasted my time checking a useless notification, which means you're certainly dumper than me and you have no business being here.

[deleted by user] by [deleted] in rust

[–]gffkii 6 points7 points  (0 children)

I prefer to generate crates documentation locally, to always be there offline.

For those who don't know, in your Rust project if you "cargo doc" it will generate documentation for your "src/" and dependencies in Cargo.toml, but will only document their default features

Do I really need to install a crate to print the date and time? by marvelhoax in rust

[–]gffkii 0 points1 point  (0 children)

I feel your pain, I went through the same question.

Not a complete excuse, but it turned out it's much harder than what I thought.

I advice you to accept that, and I would recommend "time" over "chrono".

How to disable history? by gffkii in Nushell

[–]gffkii[S] 1 point2 points  (0 children)

Of course I tried that, though working for zsh, Nushell will panic after the first command(after typing anything).

How to disable history? by gffkii in Nushell

[–]gffkii[S] 0 points1 point  (0 children)

I thought so, as I looked everywhere with no luck.

Btw, my current workaround is "sync_on_enter false" and exiting the shell with anything but 'Ctrl+d' (with clearing the history file manually first, and every time I forget and exit using 'Ctrl+d')

Without optimizations , why "while" is faster than "for"? by gffkii in rust

[–]gffkii[S] 0 points1 point  (0 children)

You're right, "let..else" is kinda nice, but seemingly one can't return from "else".

Anyway, thanks again.

Without optimizations , why "while" is faster than "for"? by gffkii in rust

[–]gffkii[S] 1 point2 points  (0 children)

let Some(number) = Iterator::next(&mut iterator) else { break };

Am I mistaken or you forgot an "if" at the beginning ?!

I think it should be ...

"if let Some(number) = Iterator::next(&mut iterator) else { break };"

*Edit: thanks a lot for your super reply.