Skip to content

Commit

Permalink
util: remove path deps (#3413)
Browse files Browse the repository at this point in the history
* util: remove path deps

* ci: run clippy with --all-features

* ci: run tests with --all-features on FreeBSD CI
  • Loading branch information
taiki-e authored Jan 12, 2021
1 parent ed667c6 commit d37486d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ task:
rustc --version
test_script:
- . $HOME/.cargo/env
- cargo test --all
- cargo test --all --all-features
- cargo doc --all --no-deps
i686_test_script:
- . $HOME/.cargo/env
- |
cargo test --all --target i686-unknown-freebsd
cargo test --all --all-features --target i686-unknown-freebsd
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jobs:

# Run clippy
- name: "clippy --all"
run: cargo clippy --all --tests
run: cargo clippy --all --tests --all-features

docs:
name: docs
Expand Down
6 changes: 3 additions & 3 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ edition = "2018"
# If you copy one of the examples into a new project, you should be using
# [dependencies] instead.
[dev-dependencies]
tokio = { version = "1.0.0", path = "../tokio", features = ["full", "tracing"] }
tokio-util = { version = "0.6.0", path = "../tokio-util", features = ["full"] }
tokio-stream = { version = "0.1", path = "../tokio-stream" }
tokio = { version = "1.0.0", features = ["full", "tracing"] }
tokio-util = { version = "0.6.1", features = ["full"] }
tokio-stream = { version = "0.1" }

async-stream = "0.3"
tracing = "0.1"
Expand Down
1 change: 1 addition & 0 deletions tokio-stream/src/wrappers/lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl<R> LinesStream<R> {
}

/// Obtain a pinned reference to the inner `Lines<R>`.
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Lines<R>> {
self.project().inner
}
Expand Down
1 change: 1 addition & 0 deletions tokio-stream/src/wrappers/split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl<R> SplitStream<R> {
}

/// Obtain a pinned reference to the inner `Split<R>`.
#[allow(clippy::wrong_self_convention)] // https://github.com/rust-lang/rust-clippy/issues/4546
pub fn as_pin_mut(self: Pin<&mut Self>) -> Pin<&mut Split<R>> {
self.project().inner
}
Expand Down
8 changes: 4 additions & 4 deletions tokio-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ rt = ["tokio/rt"]
__docs_rs = ["futures-util"]

[dependencies]
tokio = { version = "1.0.0", path = "../tokio" }
tokio-stream = { version = "0.1", path = "../tokio-stream" }
tokio = { version = "1.0.0" }
tokio-stream = { version = "0.1" }

bytes = "1.0.0"
futures-core = "0.3.0"
Expand All @@ -49,8 +49,8 @@ pin-project-lite = "0.2.0"
slab = { version = "0.4.1", optional = true } # Backs `DelayQueue`

[dev-dependencies]
tokio = { version = "1.0.0", path = "../tokio", features = ["full"] }
tokio-test = { version = "0.4.0", path = "../tokio-test" }
tokio = { version = "1.0.0", features = ["full"] }
tokio-test = { version = "0.4.0" }

futures = "0.3.0"
futures-test = "0.3.5"
Expand Down

0 comments on commit d37486d

Please sign in to comment.