Skip to content

Commit 2599643

Browse files
Update comrak requirement from 0.23 to 0.24 in /services/autorust (#1665)
* Update comrak requirement from 0.23 to 0.24 in /services/autorust Updates the requirements on [comrak](https://github.com/kivikakk/comrak) to permit the latest version. - [Release notes](https://github.com/kivikakk/comrak/releases) - [Changelog](https://github.com/kivikakk/comrak/blob/main/changelog.txt) - [Commits](kivikakk/comrak@0.23.0...v0.24.1) --- updated-dependencies: - dependency-name: comrak dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Fix build breaks --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Heath Stewart <[email protected]>
1 parent 33dc607 commit 2599643

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

sdk/iot_deviceupdate/src/client.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@ fn extract_endpoint(url: &Url) -> azure_core::Result<String> {
155155
})?
156156
.1;
157157

158-
Ok(format!("{}://{}{}", url.scheme(), endpoint, azure_core::auth::DEFAULT_SCOPE_SUFFIX))
158+
Ok(format!(
159+
"{}://{}{}",
160+
url.scheme(),
161+
endpoint,
162+
azure_core::auth::DEFAULT_SCOPE_SUFFIX
163+
))
159164
}
160165

161166
#[cfg(test)]

services/autorust/codegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ heck = "0.5"
1717
regex = "1.7"
1818
indexmap = { version = "2.0", features = ["serde"] }
1919
path_abs = "0.5"
20-
comrak = "0.23"
20+
comrak = "0.24"
2121
serde = "1.0"
2222
http-types = "2.12"
2323
once_cell = "1.16"

services/autorust/codegen/src/codegen.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use once_cell::sync::Lazy;
1111
use proc_macro2::{Ident, TokenStream};
1212
use quote::ToTokens;
1313
use regex::Regex;
14-
use std::{collections::HashSet, convert::TryFrom};
14+
use std::{collections::HashSet, convert::TryFrom, fmt};
1515
use syn::{
1616
punctuated::Punctuated,
1717
token::{Gt, Impl, Lt},
@@ -343,9 +343,9 @@ impl TypeNameCode {
343343
}
344344
}
345345

346-
impl ToString for TypeNameCode {
347-
fn to_string(&self) -> String {
348-
self.to_type().into_token_stream().to_string()
346+
impl fmt::Display for TypeNameCode {
347+
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
348+
f.write_str(self.to_type().into_token_stream().to_string().as_str())
349349
}
350350
}
351351

0 commit comments

Comments
 (0)