Skip to content

Commit 52bae94

Browse files
bors[bot]MikailBag
andauthored
Merge #57
57: Add rustfmt config r=MikailBag a=MikailBag Co-authored-by: Mikail Bagishov <bagishov.mikail@yandex.ru>
2 parents aaa7868 + 966bd31 commit 52bae94

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: actions-rs/toolchain@v1.0.6
1919
with:
20-
toolchain: stable
20+
toolchain: nightly
2121
components: rustfmt
22+
override: true
2223
- name: Check formatting
2324
run: |
2425
rm -rf .cargo

rustfmt.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
unstable_features = true
2+
imports_granularity = "Crate"

src/linux/cgroup/v1.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
//! Implements Cgroup Driver for V1 cgroups
22
use crate::linux::cgroup::{CgroupError, ResourceLimits};
3-
use std::os::unix::io::{IntoRawFd, RawFd};
4-
use std::path::PathBuf;
3+
use std::{
4+
os::unix::io::{IntoRawFd, RawFd},
5+
path::PathBuf,
6+
};
57

68
impl super::Driver {
79
fn v1_write_file(

0 commit comments

Comments
 (0)