-
Notifications
You must be signed in to change notification settings - Fork 148
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
Missing lifetime specifier in src/reader.rs #247
Comments
What's your rust version ? |
Tell me if it's better with this patch: diff --git a/src/reader.rs b/src/reader.rs
index f673853..c7de3ea 100644
--- a/src/reader.rs
+++ b/src/reader.rs
@@ -80,8 +80,8 @@ pub struct GcovReaderBuf {
pos: usize,
}
-impl From<&str> for GcovReaderBuf {
- fn from(path: &str) -> GcovReaderBuf {
+impl<'a> From<&'a str> for GcovReaderBuf {
+ fn from(path: &'a str) -> GcovReaderBuf {
let path = PathBuf::from(path);
let mut f = File::open(&path).unwrap();
let mut buf = Vec::new(); |
This would likely be fixed if you update Rust to the latest version. |
Hi there, It worked. I just have a few comments: For some reason I didn't have rustup but had a previous Rust installation. I only use Rust for this tool, so this may be because I didn't do the installation properly (I don't remember what I did on installation matters, this was some months ago, but I remember having the build working fine in October 2018). I then got stuck on this bug, so I uninstalled Rust and did the whole process accordingly to this tutorial. I think it would be nice to have some kind of remark on README.md for potential contributors, if approved I can submit a Pull Request. The build worked with the new installed version of Rust, but I had this warning:
Thought it would be good to notify. Thanks! |
It's clear that the project is using Rust, so I think it's unneeded to explain in our README how to install it (contributors can search for themselves). Glad the error is gone after the update! |
Hi there,
I'm working on another issue and I'm trying to merge the updates from the upstream repo with my origin repo.
I builded the project with "cargo build" but this message keeps appearing on the terminal (I use Ubuntu 18):
Is this suppose to happen or am I doing it wrong?
I checked and the file on my computer is the same as on the original github repo.
Thanks!
The text was updated successfully, but these errors were encountered: