presets: rename to_hashmap -> into_hashmap
This commit is contained in:
parent
987e967269
commit
ef35e2a620
|
@ -331,7 +331,7 @@ impl WildcardContext {
|
||||||
///
|
///
|
||||||
/// This is a one way conversion, and will normalize rotation context items
|
/// This is a one way conversion, and will normalize rotation context items
|
||||||
/// into `VID-FINAL-ROT`.
|
/// 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 mut map = FastHashMap::default();
|
||||||
let last_user_rot = self
|
let last_user_rot = self
|
||||||
.0
|
.0
|
||||||
|
|
|
@ -219,7 +219,7 @@ pub(crate) fn parse_preset(
|
||||||
) -> Result<Vec<Value>, ParsePresetError> {
|
) -> Result<Vec<Value>, ParsePresetError> {
|
||||||
let path = path.as_ref();
|
let path = path.as_ref();
|
||||||
let mut path = path.to_path_buf();
|
let mut path = path.to_path_buf();
|
||||||
let context = context.to_hashmap();
|
let context = context.into_hashmap();
|
||||||
|
|
||||||
apply_context(&mut path, &context);
|
apply_context(&mut path, &context);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue