Skip to content

Commit 28abfdc

Browse files
committed
chore: upgrade rust-toolchain to nightly-2022-09-18
1 parent 24ea516 commit 28abfdc

File tree

130 files changed

+252
-294
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+252
-294
lines changed

Cargo.lock

Lines changed: 31 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/doc/100-faq/40-how-to-write-scalar-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ It's really simple, `S: AsPrimitive<f64>` means we can accept a primitive value
155155
```rust
156156
impl Function for SqrtFunction {
157157
fn name(&self) -> &str {
158-
&*self.display_name
158+
&self.display_name
159159
}
160160

161161
fn return_type(&self) -> DataTypeImpl {

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-2022-06-30"
2+
channel = "nightly-2022-09-18"
33
components = ["rustfmt", "clippy", "rust-src"]

scripts/setup/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-2022-06-30"
2+
channel = "nightly-2022-09-18"
33
components = ["rustfmt", "clippy", "rust-src"]

src/common/arrow/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ simd = ["arrow/simd"]
3333
[dependencies] # In alphabetical order
3434
# Workspace dependencies
3535

36-
# Github dependencies
37-
arrow = { package = "arrow2", git = "https://github.com/datafuse-extras/arrow2", default-features = false, features = [
36+
# Crates.io dependencies
37+
arrow = { package = "arrow2", version = "0.14.0", default-features = false, features = [
3838
"io_parquet",
3939
"io_parquet_compression",
40-
], rev = "4cdf6ff2" }
41-
42-
# Crates.io dependencies
40+
] }
4341
arrow-format = { version = "0.7.0", features = ["flight-data", "flight-service", "ipc"] }
4442
futures = "0.3.21"
45-
parquet2 = { version = "0.14", default_features = false }
43+
parquet2 = { version = "0.16.3", default_features = false }
4644

4745
[dev-dependencies]

src/common/arrow/src/parquet_read.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ pub async fn read_columns_many_async<'a, R: AsyncRead + AsyncSeek + Send + Unpin
7575
field.to_owned(),
7676
row_group.num_rows() as usize,
7777
chunk_size,
78+
None,
7879
)?);
7980
}
8081
Ok(arrays)

src/common/base/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#![feature(backtrace)]
1615
#![feature(thread_local)]
1716
#![allow(incomplete_features)]
1817

src/common/building/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub fn add_env_credits_info() {
9292
}
9393
};
9494

95-
let names: Vec<String> = deps.iter().map(|x| (&x.name).to_string()).collect();
95+
let names: Vec<String> = deps.iter().map(|x| (x.name).to_string()).collect();
9696
let versions: Vec<String> = deps.iter().map(|x| x.version.to_string()).collect();
9797
let licenses: Vec<String> = deps
9898
.iter()

src/common/cache/src/disk_cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ where
245245
key: K,
246246
with: F,
247247
) -> Result<()> {
248-
self.insert_by(key, None, |path| with(File::create(&path)?))
248+
self.insert_by(key, None, |path| with(File::create(path)?))
249249
}
250250

251251
/// Add a file with `bytes` as its contents to the cache at path `key`.
252252
pub fn insert_bytes<K: AsRef<OsStr>>(&mut self, key: K, bytes: &[u8]) -> Result<()> {
253253
self.insert_by(key, Some(bytes.len() as u64), |path| {
254-
let mut f = File::create(&path)?;
254+
let mut f = File::create(path)?;
255255
f.write_all(bytes)?;
256256
Ok(())
257257
})

src/common/exception/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#![feature(backtrace)]
16-
1715
pub mod exception;
1816
mod exception_code;
1917
mod exception_flight;

0 commit comments

Comments
 (0)