diff --git a/librashader-presets/src/context.rs b/librashader-presets/src/context.rs index bb81328..20d3dfc 100644 --- a/librashader-presets/src/context.rs +++ b/librashader-presets/src/context.rs @@ -331,7 +331,7 @@ impl WildcardContext { /// /// This is a one way conversion, and will normalize rotation context items /// into `VID-FINAL-ROT`. - pub fn to_hashmap(mut self) -> FastHashMap { + pub fn into_hashmap(mut self) -> FastHashMap { let mut map = FastHashMap::default(); let last_user_rot = self .0 diff --git a/librashader-presets/src/parse/value.rs b/librashader-presets/src/parse/value.rs index 58348e6..7f270ad 100644 --- a/librashader-presets/src/parse/value.rs +++ b/librashader-presets/src/parse/value.rs @@ -219,7 +219,7 @@ pub(crate) fn parse_preset( ) -> Result, ParsePresetError> { let path = path.as_ref(); let mut path = path.to_path_buf(); - let context = context.to_hashmap(); + let context = context.into_hashmap(); apply_context(&mut path, &context);