Skip to content

Commit cc911a3

Browse files
meskilltusharmath
andauthored
chore: update rust version (#3043)
Co-authored-by: Tushar Mathur <[email protected]>
1 parent d63b288 commit cc911a3

File tree

26 files changed

+40
-44
lines changed

26 files changed

+40
-44
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
with:
7676
target: wasm32-unknown-unknown
7777

78+
- name: Install Node.js
79+
uses: actions/setup-node@v4
80+
with:
81+
node-version: "20.11.0"
82+
7883
- name: Install Wasm Pack
7984
run: cargo install wasm-bindgen-cli --vers "0.2.92"
8085

.nightly/rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2024-06-01"
2+
channel = "nightly-2024-10-20"
33
profile = "default"

benches/request_template_bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl PathValue for Context {
3333
}
3434

3535
impl PathString for Context {
36-
fn path_string<'a, T: AsRef<str>>(&'a self, parts: &'a [T]) -> Option<Cow<'_, str>> {
36+
fn path_string<'a, T: AsRef<str>>(&'a self, parts: &'a [T]) -> Option<Cow<'a, str>> {
3737
self.value.path_string(parts)
3838
}
3939
}

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.80"
2+
channel = "1.82"
33
profile = "default"

src/cli/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ impl Fmt {
99
format!("{}", heading.bold())
1010
}
1111

12-
pub fn meta(meta: &String) -> String {
12+
pub fn meta(meta: &str) -> String {
1313
format!("{}", meta.yellow())
1414
}
1515

src/core/async_graphql_hyper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ impl GraphQLArcResponse {
397397
.collect::<Vec<u8>>();
398398

399399
// Wrap the result in square brackets
400-
[&[b'['], &combined[..], &[b']']].concat()
400+
[b"[", &combined[..], b"]"].concat()
401401
}
402402
JITBatchResponse::Single(resp) => resp.body.as_ref().to_owned(),
403403
};

src/core/blueprint/definitions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ pub fn to_field_definition(
496496
object_name: &str,
497497
config_module: &ConfigModule,
498498
type_of: &config::Type,
499-
name: &String,
499+
name: &str,
500500
) -> Valid<FieldDefinition, String> {
501501
update_args()
502502
.and(update_http().trace(config::Http::trace_name().as_str()))

src/core/config/npo/tracker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl<'a> From<Chunk<Chunk<FieldName<'a>>>> for QueryPath<'a> {
3333
}
3434
}
3535

36-
impl<'a> Display for QueryPath<'a> {
36+
impl Display for QueryPath<'_> {
3737
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
3838
let query_data: Vec<String> = self
3939
.0
@@ -109,7 +109,7 @@ pub struct PathTracker<'a> {
109109
}
110110

111111
impl<'a> PathTracker<'a> {
112-
pub fn new(config: &'a Config) -> PathTracker {
112+
pub fn new(config: &'a Config) -> PathTracker<'a> {
113113
PathTracker { config, cache: Default::default() }
114114
}
115115

src/core/config/reader_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct ConfigReaderContext<'a> {
1313
pub headers: HeaderMap,
1414
}
1515

16-
impl<'a> PathString for ConfigReaderContext<'a> {
16+
impl PathString for ConfigReaderContext<'_> {
1717
fn path_string<T: AsRef<str>>(&self, path: &[T]) -> Option<Cow<'_, str>> {
1818
if path.is_empty() {
1919
return None;

src/core/config/transformer/merge_types/similarity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct SimilarityTypeInfo<'a> {
2121
}
2222

2323
impl<'a> Similarity<'a> {
24-
pub fn new(config: &'a Config) -> Similarity {
24+
pub fn new(config: &'a Config) -> Similarity<'a> {
2525
Similarity { config, type_similarity_cache: PairMap::default() }
2626
}
2727

0 commit comments

Comments
 (0)