Skip to content

Commit

Permalink
Fix CI (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
TethysSvensson authored Nov 29, 2024
1 parent 14f60dd commit a54000b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl<'a> Translator<'a> {
if self
.reachability
.get(&current_file_id)
.map_or(false, |reachable| reachable.contains(&decl.file_id))
.is_some_and(|reachable| reachable.contains(&decl.file_id))
{
return Some(result);
} else if seen_hints.insert((decl.file_id, decl.definition_span)) {
Expand Down
2 changes: 1 addition & 1 deletion crates/planus/src/builder_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl<C: GetCacheKey> Cache<C> {
self.cache
.find(key_hash, |back_offset| {
C::get_cache_key(serialized_data, *back_offset)
.map_or(false, |old_key| old_key == key)
.is_some_and(|old_key| old_key == key)
})
.copied()
}
Expand Down
24 changes: 12 additions & 12 deletions flake.lock

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

2 changes: 1 addition & 1 deletion test/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn generate_test_code(
if !file_path.is_dir()
&& file_path
.extension()
.map_or(false, |extension| extension == "fbs")
.is_some_and(|extension| extension == "fbs")
{
let file_stem = file_path.file_stem().unwrap().to_str().unwrap();

Expand Down
4 changes: 2 additions & 2 deletions test/rust/src/test_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_serialize() {
if !file_path.is_dir()
&& file_path
.extension()
.map_or(false, |extension| extension == "json")
.is_some_and(|extension| extension == "json")
{
let json = std::fs::read_to_string(&file_path).unwrap();
let root: Root = serde_json::from_str(&json).unwrap();
Expand Down Expand Up @@ -80,7 +80,7 @@ fn test_deserialize() {
let file_path = entry.path();
if file_path
.extension()
.map_or(false, |extension| extension == "bin")
.is_some_and(|extension| extension == "bin")
{
let data = std::fs::read(&file_path).unwrap();

Expand Down

0 comments on commit a54000b

Please sign in to comment.