Prefer str over String get_function

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
Collin Chin 2020-10-27 11:11:28 -07:00 committed by GitHub
parent 3c30ca342b
commit c05fe32d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ impl Frame {
///
/// Get a function's type from the user defined types in the current scope.
///
fn get_function(&self, name: &String) -> Option<&FunctionType> {
fn get_function(&self, name: &str) -> Option<&FunctionType> {
self.user_defined_types.get_function_type(name)
}