Skip to content

Commit

Permalink
Bump petgraph from 0.6.2 to 0.6.3 (#1207)
Browse files Browse the repository at this point in the history
Bumps [petgraph](https://github.com/petgraph/petgraph) from 0.6.2 to
0.6.3.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/petgraph/petgraph/blob/master/RELEASES.rst">petgraph's
changelog</a>.</em></p>
<blockquote>
<h1>Version 0.6.3 (2023-02-07)</h1>
<ul>
<li>Added an iterator over subgraph isomorphisms
(<code>[#500](https://github.com/petgraph/petgraph/issues/500)</code>_)</li>
<li>Added serde support on <code>GraphMap</code>
(<code>[#496](https://github.com/petgraph/petgraph/issues/496)</code>_)</li>
<li>Added <code>reverse</code> method for <code>StableGraph</code>
(<code>[#533](https://github.com/petgraph/petgraph/issues/533)</code>_)</li>
<li>Added <code>edges_connecting</code> iterator for
<code>StableGraph</code>
(<code>[#521](https://github.com/petgraph/petgraph/issues/521)</code>_)</li>
<li>Fix Floyd-Warshall algorithm behaviour on undirected graphs
(<code>487</code>_)</li>
<li>Fix IntoEdgesDirected implementation for NodeFiltered when direction
is Incoming (<code>476</code>_)</li>
<li>Fix cardinality check in subgraph isomorphism
(<code>472</code>_)</li>
<li>Fix UB in <code>MatrixGraph</code>
(<code>[#505](https://github.com/petgraph/petgraph/issues/505)</code>_)</li>
</ul>
<p>..
_<code>[#472](https://github.com/petgraph/petgraph/issues/472)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/472">petgraph/petgraph#472</a>
..
_<code>[#476](https://github.com/petgraph/petgraph/issues/476)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/476">petgraph/petgraph#476</a>
..
_<code>[#487](https://github.com/petgraph/petgraph/issues/487)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/487">petgraph/petgraph#487</a>
..
_<code>[#496](https://github.com/petgraph/petgraph/issues/496)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/496">petgraph/petgraph#496</a>
..
_<code>[#500](https://github.com/petgraph/petgraph/issues/500)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/500">petgraph/petgraph#500</a>
..
_<code>[#505](https://github.com/petgraph/petgraph/issues/505)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/505">petgraph/petgraph#505</a>
..
_<code>[#521](https://github.com/petgraph/petgraph/issues/521)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/521">petgraph/petgraph#521</a>
..
_<code>[#533](https://github.com/petgraph/petgraph/issues/533)</code>:
<a
href="https://github-redirect.dependabot.com/petgraph/petgraph/issues/533">petgraph/petgraph#533</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/petgraph/petgraph/commits/0.6.3">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=petgraph&package-manager=cargo&previous-version=0.6.2&new-version=0.6.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yota Toyama <raviqqe@gmail.com>
  • Loading branch information
dependabot[bot] and raviqqe committed Feb 7, 2023
1 parent 5af541a commit 170429f
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions lib/app/src/build/error.rs
Expand Up @@ -24,8 +24,7 @@ impl std::fmt::Display for BuildError {
match self {
Self::ExternalPackageConfigurationFileNotFound { package_name } => write!(
formatter,
"package configuration file not found in external package \"{}\"",
package_name
"package configuration file not found in external package \"{package_name}\""
),
Self::MainFunctionModuleNotFound {
main_function_module_name,
Expand All @@ -38,17 +37,15 @@ impl std::fmt::Display for BuildError {
),
Self::ModuleCircularDependency(file_path) => write!(
formatter,
"circular module dependency detected: {}",
file_path
"circular module dependency detected: {file_path}"
),
Self::ModuleNotFound {
module_path,
source_file_path,
} => {
write!(
formatter,
"module \"{}\" not found imported by \"{}\"",
module_path, source_file_path
"module \"{module_path}\" not found imported by \"{source_file_path}\""
)
}
Self::PackageCircularDependency(external_package) => write!(
Expand Down
2 changes: 1 addition & 1 deletion lib/app/src/common/file_path.rs
Expand Up @@ -27,7 +27,7 @@ impl FilePath {
let replacement = if extension.is_empty() {
"".into()
} else {
format!(".{}", extension)
format!(".{extension}")
};

Self::new(
Expand Down
2 changes: 1 addition & 1 deletion lib/app/src/infra/file_path_displayer.rs
Expand Up @@ -18,6 +18,6 @@ impl FakeFilePathDisplayer {
#[cfg(test)]
impl FilePathDisplayer for FakeFilePathDisplayer {
fn display(&self, file_path: &FilePath) -> String {
format!("{}", file_path)
format!("{file_path}")
}
}
2 changes: 1 addition & 1 deletion lib/app/src/infra/file_system.rs
Expand Up @@ -47,7 +47,7 @@ impl FileSystem for FakeFileSystem {
directory_path: &FilePath,
) -> Result<Option<Repository>, Box<dyn std::error::Error>> {
Ok(Some(Repository::new(
url::Url::parse(&format!("{}", directory_path))?,
url::Url::parse(&format!("{directory_path}"))?,
"v1",
)))
}
Expand Down
2 changes: 1 addition & 1 deletion lib/infra/src/error.rs
Expand Up @@ -45,7 +45,7 @@ impl Display for InfrastructureError {
match self {
Self::CommandExit { status_code } => match status_code {
Some(status_code) => {
write!(formatter, "command exited with status code {}", status_code)
write!(formatter, "command exited with status code {status_code}")
}
None => write!(formatter, "command exited without status code"),
},
Expand Down
4 changes: 2 additions & 2 deletions lib/infra/src/logger.rs
Expand Up @@ -24,7 +24,7 @@ impl Logger {
writeln!(
&mut stderr,
": {}",
format!("{}", error).replace('\n', "\n ").trim()
format!("{error}").replace('\n', "\n ").trim()
)?;

if let Some(error) = error.source() {
Expand All @@ -43,7 +43,7 @@ impl app::Logger for Logger {
write!(&mut stderr, "info")?;
stderr.set_color(ColorSpec::new().set_fg(None))?;

writeln!(&mut stderr, ": {}", log)?;
writeln!(&mut stderr, ": {log}")?;

Ok(())
}
Expand Down
30 changes: 12 additions & 18 deletions lib/lang/src/compile/error.rs
Expand Up @@ -29,27 +29,23 @@ impl Display for CompileError {
match self {
Self::AnyEqualOperation(source_information) => write!(
formatter,
"cannot compare Any type values\n{}",
source_information
"cannot compare Any type values\n{source_information}"
),
Self::CaseArgumentTypeInvalid(source_information) => write!(
formatter,
"invalid argument type of case expression\n{}",
source_information
"invalid argument type of case expression\n{source_information}"
),
Self::ExportedNameNotFound { name } => {
write!(formatter, "exported name \"{}\" not found", name)
write!(formatter, "exported name \"{name}\" not found")
}
Self::DuplicateNames(one, other) => {
write!(formatter, "duplicate names\n{}\n{}", one, other)
write!(formatter, "duplicate names\n{one}\n{other}")
}
Self::FunctionEqualOperation(source_information) => {
write!(formatter, "cannot compare functions\n{source_information}")
}
Self::FunctionEqualOperation(source_information) => write!(
formatter,
"cannot compare functions\n{}",
source_information
),
Self::FunctionExpected(source_information) => {
write!(formatter, "function expected\n{}", source_information)
write!(formatter, "function expected\n{source_information}")
}
Self::MainFunctionNotFound(path) => write!(
formatter,
Expand All @@ -64,11 +60,10 @@ impl Display for CompileError {
),
Self::RecordEqualOperation(source_information) => write!(
formatter,
"cannot compare records including functions or Any values\n{}",
source_information
"cannot compare records including functions or Any values\n{source_information}"
),
Self::EirFmmCompile(error) => {
write!(formatter, "failed to compile eir to fmm: {:?}", error)
write!(formatter, "failed to compile eir to fmm: {error:?}")
}
Self::TypeNotFound(reference) => write!(
formatter,
Expand All @@ -77,12 +72,11 @@ impl Display for CompileError {
reference.source_information()
),
Self::TypeNotInferred(source_information) => {
write!(formatter, "failed to infer type\n{}", source_information)
write!(formatter, "failed to infer type\n{source_information}")
}
Self::TypesNotMatched(lhs_source_information, rhs_source_information) => write!(
formatter,
"types not matched\n{}\n{}",
lhs_source_information, rhs_source_information
"types not matched\n{lhs_source_information}\n{rhs_source_information}"
),
Self::VariableNotFound(variable) => write!(
formatter,
Expand Down
2 changes: 1 addition & 1 deletion lib/lang/src/compile/module_compiler.rs
Expand Up @@ -162,7 +162,7 @@ impl ModuleCompiler {
body: &Expression,
function_type: &eir::types::Function,
) -> Result<Vec<eir::ir::Definition>, CompileError> {
let thunk_name = format!("{}.thunk", name);
let thunk_name = format!("{name}.thunk");
const ARGUMENT_NAME: &str = "$arg";

Ok(vec![
Expand Down
2 changes: 1 addition & 1 deletion lib/lang/src/parse/error.rs
Expand Up @@ -10,7 +10,7 @@ impl ParseError {
pub fn new(source_name: &str, errors: &impl std::error::Error) -> Self {
Self {
source_name: source_name.into(),
details: format!("{}", errors),
details: format!("{errors}"),
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/lang/src/path/unresolved_module_path.rs
Expand Up @@ -25,8 +25,8 @@ impl From<InternalUnresolvedModulePath> for UnresolvedModulePath {
impl std::fmt::Display for UnresolvedModulePath {
fn fmt(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::External(external_module_path) => write!(formatter, "{}", external_module_path),
Self::Internal(internal_module_path) => write!(formatter, "{}", internal_module_path),
Self::External(external_module_path) => write!(formatter, "{external_module_path}"),
Self::Internal(internal_module_path) => write!(formatter, "{internal_module_path}"),
}
}
}

0 comments on commit 170429f

Please sign in to comment.