Content-Length: 284836 | pFad | http://github.com/RustPython/RustPython/commit/bdfa3f3a03b4fc41940c716641816714cbea5db8
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cd5b4d commit bdfa3f3Copy full SHA for bdfa3f3
stdlib/src/sqlite.rs
@@ -3086,9 +3086,7 @@ mod _sqlite {
3086
pos += 1;
3087
}
3088
// CPython: if (pos[0] == '\0') return NULL;
3089
- if sql.get(pos).is_none() {
3090
- return None;
3091
- }
+ sql.get(pos)?;
3092
// CPython: continue; (The outer for loop handles pos++)
3093
// Rust: The outer while loop will continue naturally
3094
} else {
@@ -3106,9 +3104,7 @@ mod _sqlite {
3106
3104
3107
3105
3108
3109
3110
- return None; // Unclosed comment
3111
+ sql.get(pos)?; // Unclosed comment
3112
// CPython: pos++; continue; (Handles '*' then '/' in the next loop)
3113
pos += 2; // Skip "*/"
3114
Fetched URL: http://github.com/RustPython/RustPython/commit/bdfa3f3a03b4fc41940c716641816714cbea5db8
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy
0 commit comments