fix warnings regarding lifetimes that can be auto-elided
@@ -106,7 +106,7 @@ impl CompilerCommand {
}
/// Adds a file to be compiled.
- pub fn file<'a, P>(&'a mut self, path: P) -> &'a mut CompilerCommand
+ pub fn file<P>(&mut self, path: P) -> &mut CompilerCommand
where
P: AsRef<Path>,
{
@@ -116,7 +116,7 @@ impl CompilerCommand {
/// Adds a --src-prefix flag. For all files specified for compilation that start
/// with `prefix`, removes the prefix when computing output filenames.
- pub fn src_prefix<'a, P>(&'a mut self, prefix: P) -> &'a mut CompilerCommand
+ pub fn src_prefix<P>(&mut self, prefix: P) -> &mut CompilerCommand
where
P: AsRef<Path>,
{
@@ -126,7 +126,7 @@ impl CompilerCommand {
/// Adds an --import_path flag. Adds `dir` to the list of directories searched
/// for absolute imports.
- pub fn import_path<'a, P>(&'a mut self, dir: P) -> &'a mut CompilerCommand
+ pub fn import_path<P>(&mut self, dir: P) -> &mut CompilerCommand
where
P: AsRef<Path>,
{
@@ -136,13 +136,13 @@ impl CompilerCommand {
/// Adds the --no-standard-import flag, indicating that the default import paths of
/// /usr/include and /usr/local/include should not bet included.
- pub fn no_standard_import<'a>(&'a mut self) -> &'a mut CompilerCommand {
+ pub fn no_standard_import(&mut self) -> &mut CompilerCommand {
self.no_standard_import = true;
self
}
///Sets the output directory of generated code. Default is OUT_DIR
- pub fn output_path<'a, P>(&'a mut self, path: P) -> &'a mut CompilerCommand
+ pub fn output_path<P>(&mut self, path: P) -> &mut CompilerCommand
where
P: AsRef<Path>,
{
