Skip to content

Commit

Permalink
chore: devenv update (#744)
Browse files Browse the repository at this point in the history
uv 0.5.15 and rust 1.84

+ clippy fixes
  • Loading branch information
ss2165 authored Jan 10, 2025
1 parent b3ed351 commit 5a69e23
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 49 deletions.
67 changes: 24 additions & 43 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1728452860,
"lastModified": 1736426010,
"owner": "cachix",
"repo": "devenv",
"rev": "e7a0bc559f5a66aaa42f5028db6162c4dd4587eb",
"rev": "1c384bc4be3ee571511fbbc6fdc94fe47d60f6cf",
"type": "github"
},
"original": {
Expand All @@ -24,10 +24,10 @@
"rust-analyzer-src": "rust-analyzer-src"
},
"locked": {
"lastModified": 1728455642,
"lastModified": 1736490741,
"owner": "nix-community",
"repo": "fenix",
"rev": "3b47535a5c782e4f4ad59cd4bdb23636b6926e03",
"rev": "ff8cb1e6d1755aa3ace7c662f79f74882cc5022f",
"type": "github"
},
"original": {
Expand All @@ -51,32 +51,10 @@
"type": "github"
}
},
"git-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1733665616,
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "d8c02f0ffef0ef39f6063731fc539d8c71eb463a",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"git-hooks",
"pre-commit-hooks",
"nixpkgs"
]
},
Expand All @@ -95,10 +73,10 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1728279793,
"lastModified": 1736320768,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f85a2d005e83542784a755ca8da112f4f65c4aa4",
"rev": "4bc9c909d9ac828a039f288cf872d16d38185db8",
"type": "github"
},
"original": {
Expand All @@ -123,40 +101,43 @@
"type": "github"
}
},
"nixpkgs-stable": {
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1733730953,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7109b680d161993918b0a126f38bc39763e5a709",
"lastModified": 1735882644,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "a5a961387e75ae44cc20f0a57ae463da5e959656",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"fenix": "fenix",
"git-hooks": "git-hooks",
"nixpkgs": "nixpkgs",
"nixpkgs-2305": "nixpkgs-2305",
"pre-commit-hooks": [
"git-hooks"
]
"pre-commit-hooks": "pre-commit-hooks"
}
},
"rust-analyzer-src": {
"flake": false,
"locked": {
"lastModified": 1728386838,
"lastModified": 1736424758,
"owner": "rust-lang",
"repo": "rust-analyzer",
"rev": "efaf8bd5de34e2f47bd57425b83e0c7974902176",
"rev": "cc016df54b03d8c1bbb1aae761da01dbfae5f126",
"type": "github"
},
"original": {
Expand Down
2 changes: 1 addition & 1 deletion tket2/src/circuit/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<'circ, T: HugrView> Command<'circ, T> {
pub fn is_linear_port(&self, port: Port) -> bool {
self.optype()
.port_kind(port)
.map_or(false, |kind| kind.is_linear())
.is_some_and(|kind| kind.is_linear())
}

/// Returns a metadata value associated with the command's node.
Expand Down
5 changes: 1 addition & 4 deletions tket2/src/serialize/pytket/param/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ pub fn fold_param_op(optype: &OpType, inputs: &[&str]) -> Option<String> {
let param = match optype {
OpType::Const(const_op) => {
// New constant, register it if it can be interpreted as a parameter.
match try_constant_to_param(const_op.value()) {
Some(param) => param,
None => return None,
}
try_constant_to_param(const_op.value())?
}
OpType::LoadConstant(_op_type) => {
// Re-use the parameter from the input.
Expand Down
4 changes: 3 additions & 1 deletion uv.lock

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

0 comments on commit 5a69e23

Please sign in to comment.