File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ fn format_binary_base64(bytes: &[u8]) -> String {
4343
4444/// Converts a Variant to JSON and writes it to the provided `Write`
4545///
46- /// This function writes JSON directly to any type that implements [`Write`](std::io::Write) ,
46+ /// This function writes JSON directly to any type that implements [`Write`],
4747/// making it efficient for streaming or when you want to control the output destination.
4848///
4949/// # Arguments
@@ -829,9 +829,9 @@ mod tests {
829829 . run ( ) ;
830830
831831 JsonTest {
832- variant : Variant :: Double ( 2.718281828459045 ) ,
832+ variant : Variant :: Double ( std :: f64 :: consts :: E ) ,
833833 expected_json : "2.718281828459045" ,
834- expected_value : serde_json:: Number :: from_f64 ( 2.718281828459045 )
834+ expected_value : serde_json:: Number :: from_f64 ( std :: f64 :: consts :: E )
835835 . map ( Value :: Number )
836836 . unwrap ( ) ,
837837 }
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ impl<'a> TryFrom<&'a str> for ShortString<'a> {
7676 }
7777}
7878
79- impl < ' a > AsRef < str > for ShortString < ' a > {
79+ impl AsRef < str > for ShortString < ' _ > {
8080 fn as_ref ( & self ) -> & str {
8181 self . 0
8282 }
8383}
8484
85- impl < ' a > Deref for ShortString < ' a > {
85+ impl Deref for ShortString < ' _ > {
8686 type Target = str ;
8787
8888 fn deref ( & self ) -> & Self :: Target {
You can’t perform that action at this time.
0 commit comments