clippy things

This commit is contained in:
Richard Feldman 2020-09-16 19:34:48 -04:00
parent 5d3645350d
commit 1c8383b3bb
2 changed files with 3 additions and 3 deletions

View file

@ -1807,7 +1807,7 @@ fn run_low_level<'a, 'ctx, 'env>(
debug_assert_eq!(args.len(), 1);
let wrapper_ptr = ptr_from_symbol(scope, args[0]);
let len = str_len(env, parent, wrapper_ptr.clone());
let len = str_len(env, parent, *wrapper_ptr);
let is_zero = env.builder.build_int_compare(
IntPredicate::EQ,
len,

View file

@ -32,13 +32,13 @@ pub fn str_concat<'a, 'ctx, 'env>(
load_str(
env,
parent,
second_str_ptr.clone(),
*second_str_ptr,
str_wrapper_type,
|second_str_ptr, second_str_len, second_str_smallness| {
load_str(
env,
parent,
first_str_ptr.clone(),
*first_str_ptr,
str_wrapper_type,
|first_str_ptr, first_str_len, first_str_smallness| {
// first_str_len > 0