You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
932 B
33 lines
932 B
From 16da31ca8b0243fe9f9fafb3f511518540907e45 Mon Sep 17 00:00:00 2001
|
|
From: Tristan Hume <tris.hume@gmail.com>
|
|
Date: Tue, 29 Jan 2019 10:47:26 -0500
|
|
Subject: [PATCH] Update plist to v0.4
|
|
|
|
---
|
|
src/highlighting/settings.rs | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/src/highlighting/settings.rs b/src/highlighting/settings.rs
|
|
index da64fcf..096c78a 100644
|
|
--- a/src/highlighting/settings.rs
|
|
+++ b/src/highlighting/settings.rs
|
|
@@ -3,7 +3,6 @@
|
|
|
|
use std::io::{Read, Seek};
|
|
use plist::{Error as PlistError};
|
|
-use plist::serde::deserialize;
|
|
|
|
pub use serde_json::Value as Settings;
|
|
pub use serde_json::Value::Array as SettingsArray;
|
|
@@ -33,6 +32,6 @@ impl From<PlistError> for SettingsError {
|
|
}
|
|
|
|
pub fn read_plist<R: Read + Seek>(reader: R) -> Result<Settings, SettingsError> {
|
|
- let settings = deserialize(reader)?;
|
|
+ let settings = plist::from_reader(reader)?;
|
|
Ok(settings)
|
|
}
|
|
--
|
|
2.20.1
|
|
|