Skip to content

Commit

Permalink
fix warnings that show up with nightly toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Sep 20, 2023
1 parent e2edeca commit 466d9f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ categories = ["command-line-interface"]

rust-version = "1.70"

resolver = "2"

default-run = "sudo"

[lib]
Expand Down
1 change: 1 addition & 0 deletions test-framework/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[workspace]
members = ["sudo-test", "sudo-compliance-tests", "e2e-tests"]
resolver = "2"

[profile.dev.package.insta]
opt-level = 3
Expand Down
8 changes: 4 additions & 4 deletions test-framework/sudo-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ pub fn TextFile(contents: impl AsRef<str>) -> TextFile {
}

impl TextFile {
const DEFAULT_CHMOD: &str = "000";
const DEFAULT_CHOWN: &str = "root:root";
const DEFAULT_CHMOD: &'static str = "000";
const DEFAULT_CHOWN: &'static str = "root:root";

/// chmod string to apply to the file
///
Expand Down Expand Up @@ -567,8 +567,8 @@ pub struct Directory {
}

impl Directory {
const DEFAULT_CHMOD: &str = "100";
const DEFAULT_CHOWN: &str = "root:root";
const DEFAULT_CHMOD: &'static str = "100";
const DEFAULT_CHOWN: &'static str = "root:root";

/// chmod string to apply to the file
///
Expand Down

0 comments on commit 466d9f8

Please sign in to comment.