mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
update to latest Rust
This commit is contained in:
parent
561d160590
commit
fcfa6bab4e
4 changed files with 3 additions and 6 deletions
2
defs.bzl
2
defs.bzl
|
@ -19,7 +19,7 @@ def setup_deps():
|
|||
|
||||
rust_repositories(
|
||||
edition = "2018",
|
||||
version = "1.48.0",
|
||||
version = "1.51.0",
|
||||
)
|
||||
|
||||
raze_fetch_remote_crates()
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
// infallible backend methods still return a result
|
||||
#![allow(clippy::unnecessary_wraps)]
|
||||
#![allow(clippy::unknown_clippy_lints)]
|
||||
|
||||
mod adding;
|
||||
mod card;
|
||||
|
|
|
@ -863,6 +863,8 @@ mod test {
|
|||
fn n(s: &str) -> String {
|
||||
s.replace(":", "\x1f")
|
||||
}
|
||||
|
||||
#[allow(clippy::unnecessary_wraps)]
|
||||
fn n_opt(s: &str) -> Option<String> {
|
||||
Some(n(s))
|
||||
}
|
||||
|
|
|
@ -122,10 +122,6 @@ pub(crate) fn normalize_nfc_filename(mut fname: Cow<str>) -> Cow<str> {
|
|||
/// On Apple devices, the filename may be stored on disk in NFD encoding,
|
||||
/// but can be accessed as NFC. On these devices, if the filename
|
||||
/// is otherwise valid, the filename is returned as NFC.
|
||||
///
|
||||
/// First two lints can be removed after updating to 1.51
|
||||
#[allow(clippy::unknown_clippy_lints)]
|
||||
#[allow(clippy::collapsible_if)]
|
||||
#[allow(clippy::collapsible_else_if)]
|
||||
pub(super) fn filename_if_normalized(fname: &str) -> Option<Cow<str>> {
|
||||
if cfg!(target_vendor = "apple") {
|
||||
|
|
Loading…
Reference in a new issue