-
Notifications
You must be signed in to change notification settings - Fork 15
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
[MISC]: Bump edition, remove late variable assignments, fix clippy lints, replace new objects with slices, and other. #43
Conversation
Cargo.toml
Outdated
rand = "0.8.5" | ||
chrono = "0.4.19" | ||
csv = "1.1.6" | ||
mimalloc = { version = "0.1.26", default-features = false } | ||
mimalloc = { version = "0.1.28", default-features = false } |
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.
@Uzaaft : This is a dependency we have to keep at 0.1.26 for the time being because of a build error on old versions of Clang (that are used in bioconda, upon which we partially rely for distribution). For more details on this see this. Suggest changing this back to 0.1.26 until those upstream changes are merged in.
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.
Fixed in 83e5f9b
Hi @Uzaaft, Thanks so much for these changes. For the eventual next tagged release, yes; the version numbers for both of these should change. This is because when we push to crates.io, we need to rely on libradicl in crates rather than the local dev version — so that version will have to be bumped to accomodate a new |
By the way, @Uzaaft — these are really nice changes to make the code more idiomatic. Any idea why |
@rob-p I'm not sure why. |
Which reminds me, Perhaps you(or I xD) should consider moving more usages of |
That would be great! I guess I don't see the Clion ones because I'm using VSCode and or Doom Emacs for most of the development, so I only get the clippy lints. If you can move over the usages of |
Emacs? You should try neovim 😝I'll move more usages of string to &str, and tag you when I am done |
To be fair, I only use Doom Emacs with EVIL mode enabled. I can't edit text with non-vim key bindings. |
Migrating things to &str is was not as easy as I thought, so it'll take some time. |
That's a good question, @Uzaaft, and the documentation around that unsafe call should be more clear. The reason this is OK is because we control the the file we are ingesting, which contains only valid cell-level tags (here, biological cells, not cell as in |
@rob-p The migration to |
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.
Everything here looks great @Uzaaft! Thanks for this PR :), and I'm looking forward to your further suggestions and contributions.
@rob-p I am not sure if this got merged correctly. Just checked the newest master commit, and somehow the changes I made isnt there now |
Turns out, I merged the local repo wrong |
This pr does a couple of things:
match/if
chainsString
with&str
a few places(This should be done in more places, theoretically it might reduce execution times)@rob-p I am just wondering. Should I go ahead and bump the version number of both alevin-fry and libradicl?