Content-Length: 284836 | pFad | http://github.com/RustPython/RustPython/commit/bdfa3f3a03b4fc41940c716641816714cbea5db8

B1 clippy · RustPython/RustPython@bdfa3f3 · GitHub
Skip to content

Commit bdfa3f3

Browse files
committed
clippy
1 parent 5cd5b4d commit bdfa3f3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

stdlib/src/sqlite.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3086,9 +3086,7 @@ mod _sqlite {
30863086
pos += 1;
30873087
}
30883088
// CPython: if (pos[0] == '\0') return NULL;
3089-
if sql.get(pos).is_none() {
3090-
return None;
3091-
}
3089+
sql.get(pos)?;
30923090
// CPython: continue; (The outer for loop handles pos++)
30933091
// Rust: The outer while loop will continue naturally
30943092
} else {
@@ -3106,9 +3104,7 @@ mod _sqlite {
31063104
pos += 1;
31073105
}
31083106
// CPython: if (pos[0] == '\0') return NULL;
3109-
if sql.get(pos).is_none() {
3110-
return None; // Unclosed comment
3111-
}
3107+
sql.get(pos)?; // Unclosed comment
31123108
// CPython: pos++; continue; (Handles '*' then '/' in the next loop)
31133109
pos += 2; // Skip "*/"
31143110
} else {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/RustPython/RustPython/commit/bdfa3f3a03b4fc41940c716641816714cbea5db8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy