-
Notifications
You must be signed in to change notification settings - Fork 831
Add kilo weight unit conversion #1735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add kilo weight unit conversion #1735
Conversation
ae2069a
to
30731da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concept ACK, other than the naming, this looks good.
30731da
to
84d1f59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind improving the doc a bit too?
b5f9cba
to
446ff7f
Compare
cd3fa52
to
d2ea967
Compare
@Kixunil I think I made the changes you requested. For some reason rust nightly kept failing so I applied RustFmt to just my changes so hopefully that fixes the failing builds. |
Yeah, looks good now, will wait for CI and then ACK. |
hmm nightly is still failing without much information about why :/ |
Hmm, still failing. So running Cc @tcharding we might have a problem here. |
I pretty clearly see it's complaining about formatting:
|
This doesn't look right, there should be much fewer changes. |
Maybe the configuration file doesn't get applied for some reason? |
I'm a bit confused because it seems to be complaining about formatting in sections that I didn't change. I added another commit which applys rustfmt to the entire file to see if it passes. |
Indeed. For some reason it has different behavior on your machine. Maybe try |
On my machine |
Oh, so we have undocumented contribution guideline and also require nightly for development. I'm not happy about this... |
97f8774
to
dbd2ea0
Compare
fingers crossed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK dbd2ea0
Thanks! |
Well, FWIW, we do actually have a paragraph in Regarding "requiring nightly for development", I agree that this is an onerous requirement. But stable In any case, I'd be fine removing the CI fmt check for now, and just periodically reformatting the whole crate, or doing it prior to releases, or something like that. Under normal circumstances I'd expect this to be a fairly noninvasive process ... at least compared to the gargantuan #1434 ... though maybe these days during crate smash it actually will be a big deal. |
I wonder if super-huge Maybe we should add basic steps into PR template. Let's keep the check in and see what happens. |
Yeah I've been writing During the "rustfmt config wars" I couldn't get a suitable configuration without using nightly. This is actually quite a problem if devs work on other projects and run EDIT: Its actually not so bad because of the githooks, so if new contibutors mention they are having trouble with this we just need to point them towards enabling the git pre-commit hook and it will catch the formatting before they proceed. Well done Tobin from the past :) (cc @Kixunil, not sure if post edit shows up in notifications and you already emoji'd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK dbd2ea0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK dbd2ea0
The FeeRate module defaults to sats per
kwu
so when doing fee calculations, it would be convenient to easily convert weight to the same units.