Fix all Clippy’s needless_lifetimes warnings.
})
}
-fn flags_from_args<'a, T>(usage: &str, args: &[String],
+fn flags_from_args<T>(usage: &str, args: &[String],
options_first: bool) -> CliResult<T>
where T: Decodable
{
}
}
- pub fn dest<'a>(&'a self) -> &'a Path { &self.root }
- pub fn deps<'a>(&'a self) -> &'a Path { &self.deps }
- pub fn examples<'a>(&'a self) -> &'a Path { &self.examples }
+ pub fn dest(&self) -> &Path { &self.root }
+ pub fn deps(&self) -> &Path { &self.deps }
+ pub fn examples(&self) -> &Path { &self.examples }
pub fn fingerprint(&self, package: &Package) -> PathBuf {
self.fingerprint.join(&self.pkg_dir(package))
}
impl GitDatabase {
- fn path<'a>(&'a self) -> &'a Path {
+ fn path(&self) -> &Path {
&self.path
}