Skip to content

Commit

Permalink
Revert change to tests, remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
osiewicz committed Apr 24, 2024
1 parent e393bcc commit 82f4143
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions serde/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ mod lib {
pub use self::core::result;

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc::borrow::{Cow, ToOwned};
pub use alloc::borrow::Cow;
#[cfg(feature = "std")]
pub use std::borrow::{Cow, ToOwned};
pub use std::borrow::Cow;

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc::string::{String, ToString};
Expand Down
4 changes: 2 additions & 2 deletions serde_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ mod lib {
pub use std::borrow::{Cow, ToOwned};

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc::string::{String, ToString};
pub use alloc::string::String;
#[cfg(feature = "std")]
pub use std::string::{String, ToString};
pub use std::string::String;

#[cfg(all(feature = "alloc", not(feature = "std")))]
pub use alloc::vec::Vec;
Expand Down
2 changes: 1 addition & 1 deletion test_suite/tests/ui/remote/wrong_getter.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ error[E0308]: mismatched types
= note: expected reference `&u8`
found reference `&u16`
note: function defined here
--> $WORKSPACE/serde_core/src/private/ser.rs
--> $WORKSPACE/serde/src/private/ser.rs
|
| pub fn constrain<T: ?Sized>(t: &T) -> &T {
| ^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion test_suite/tests/ui/remote/wrong_ser.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ error[E0308]: mismatched types
= note: expected reference `&u8`
found reference `&u16`
note: function defined here
--> $WORKSPACE/serde_core/src/private/ser.rs
--> $WORKSPACE/serde/src/private/ser.rs
|
| pub fn constrain<T: ?Sized>(t: &T) -> &T {
| ^^^^^^^^^
Expand Down

0 comments on commit 82f4143

Please sign in to comment.