Fixing a couple clippy warnings : #392

This commit is contained in:
ms2300
2018-08-17 11:13:06 -06:00
committed by Dan Gohman
parent 37272f5ceb
commit 30d09cf6b0
4 changed files with 15 additions and 16 deletions

View File

@@ -60,7 +60,7 @@ impl SimpleJITBuilder {
/// back to a platform-specific search (this typically involves searching
/// the current process for public symbols, followed by searching the
/// platform's C runtime).
pub fn symbol<'a, K>(&'a mut self, name: K, ptr: *const u8) -> &'a mut Self
pub fn symbol<K>(&mut self, name: K, ptr: *const u8) -> &Self
where
K: Into<String>,
{
@@ -71,7 +71,7 @@ impl SimpleJITBuilder {
/// Define multiple symbols in the internal symbol table.
///
/// Using this is equivalent to calling `symbol` on each element.
pub fn symbols<'a, It, K>(&'a mut self, symbols: It) -> &'a mut Self
pub fn symbols<It, K>(&mut self, symbols: It) -> &Self
where
It: IntoIterator<Item = (K, *const u8)>,
K: Into<String>,