From ef35e2a620ac34d98ea6e60aaa020c015c297a71 Mon Sep 17 00:00:00 2001
From: chyyran <ronny@ronnychan.ca>
Date: Mon, 23 Sep 2024 23:55:27 -0400
Subject: [PATCH] presets: rename to_hashmap -> into_hashmap

---
 librashader-presets/src/context.rs     | 2 +-
 librashader-presets/src/parse/value.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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<String, String> {
+    pub fn into_hashmap(mut self) -> FastHashMap<String, String> {
         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<Vec<Value>, 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);