mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-28 04:35:33 +03:00
Prefer str over String get_function
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
parent
3c30ca342b
commit
c05fe32d77
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user