Repository: lifthrasiir/rust-encoding (language: rust)

Issue:
Share has been renamed to Sync in master
[See here](https://github.com/lifthrasiir/rust-encoding/blob/64f8ef92c5d7e5b4ead86b97d09f7fa49729c0f5/src/encoding/types.rs#L249)

`Share` has been renamed to `Sync`.  It is still there as deprecated, but it isn't automatically imported by prelude anymore.  So this either needs to be changed to `Sync` or `Share` has to be explicitly imported



Discussion / hints:
@forticulous Thank you for the information. I'll fix it as soon as the nightly has that change ([the latest Travis build](https://travis-ci.org/lifthrasiir/rust-encoding/builds/32028394) doesn't seem to have it yet).

@lifthrasiir Looks like it's there now.


Fix patch:
diff --git a/src/encoding/types.rs b/src/encoding/types.rs
index 3f46cb93..16b59847 100644
--- a/src/encoding/types.rs
+++ b/src/encoding/types.rs
@@ -246,7 +246,7 @@ pub trait Decoder {
 /// A trait object using dynamic dispatch which is a sendable reference to the encoding,
 /// for code where the encoding is not known at compile-time.
 #[stable]
-pub type EncodingRef = &'static Encoding+Send+Share;
+pub type EncodingRef = &'static Encoding + Send + Sync;
 
 /// Character encoding.
 #[stable]


Test patch: